Jelajahi Sumber

Update ci rules

- Split pull request sanity and full verification for master
- Few style improvements
Alexey Edelev 5 tahun lalu
induk
melakukan
8374cdc59a
2 mengubah file dengan 24 tambahan dan 8 penghapusan
  1. 8 8
      .github/workflows/masterpush.yml
  2. 16 0
      .github/workflows/pullrequest.yml

+ 8 - 8
.github/workflows/dockerimage.yml → .github/workflows/masterpush.yml

@@ -1,24 +1,24 @@
 name: Test Verification
 
-on: [push]
-
+on: 
+  push:
+    branches:
+      - master
 jobs:
-
-  build:
-
+  build-ubuntu:
+    name: Build and Test Ubuntu Latest
     runs-on: ubuntu-latest
-
     steps:
     - uses: actions/checkout@v1
     - name: Init submodules
       run: git submodule update --init --recursive
-    - name: Build the Docker image
+    - name: Build the Ubuntu Latest Docker image
       run: docker build . --file .ci/Dockerfile.ubuntu --tag ubuntu_debugimage:latest
     - name: Run tests
       run: docker run ubuntu_debugimage:latest ctest /build --output-on-failure
   #build-windows:
     #runs-on: windows-latest
-
+    #name: Build and Test Windows
     #steps:
     #- uses: actions/checkout@v1
     #- name: Init submodules

+ 16 - 0
.github/workflows/pullrequest.yml

@@ -0,0 +1,16 @@
+name: Sanity Verification
+
+on: [pull_request]
+
+jobs:
+  build-ubuntu:
+    name: Build and Test Ubuntu Latest
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v1
+    - name: Init submodules
+      run: git submodule update --init --recursive
+    - name: Build the Ubuntu Latest Docker image
+      run: docker build . --file .ci/Dockerfile.ubuntu --tag ubuntu_debugimage:latest
+    - name: Run tests
+      run: docker run ubuntu_debugimage:latest ctest /build --output-on-failure