浏览代码

Update ci rules

- Split pull request sanity and full verification for master
- Few style improvements
Alexey Edelev 5 年之前
父节点
当前提交
8374cdc59a
共有 2 个文件被更改,包括 24 次插入8 次删除
  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