Browse Source

split up tests and tutorial in header only CI

Alec Jacobson 2 years ago
parent
commit
41f84d91bc
1 changed files with 26 additions and 9 deletions
  1. 26 9
      .github/workflows/continuous.yml

+ 26 - 9
.github/workflows/continuous.yml

@@ -20,19 +20,23 @@ jobs:
   ####################
 
   Unix:
-    name: ${{ matrix.name }} (${{ matrix.config }}, ${{ fromJSON('["HeaderOnly", "Static"]')[matrix.static == 'ON'] }})
+    name: ${{ matrix.os }} ${{ matrix.config }} ${{ fromJSON('["HeaderOnly", "Static"]')[matrix.static == 'ON'] }} ${{ matrix.tutorial == 'ON' && 'tutorial' }} ${{ matrix.tests == 'OFF' && 'tests'}}
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
       matrix:
         os: [ubuntu-20.04, macos-latest]
         config: [Release]
-        static: [ON, OFF]
         include:
-          - os: macos-latest
-            name: macOS
-          - os: ubuntu-20.04
-            name: Linux
+          - static: ON
+            tutorial: ON
+            tests: ON
+          - static: OFF
+            tutorial: OFF
+            tests: ON
+          - static: OFF
+            tutorial: ON
+            tests: OOFF
     env:
       IGL_NUM_THREADS: 1  # See https://github.com/libigl/libigl/pull/996
     steps:
@@ -77,6 +81,8 @@ jobs:
             -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
             -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
             -DLIBIGL_USE_STATIC_LIBRARY=${{ matrix.static }} \
+            -DLIBIGL_BUILD_TUTORIAL=${{ matrix.tutorial }} \
+            -DLIBIGL_BUILD_TESTS=${{ matrix.tests }} \
             -DLIBIGL_COPYLEFT_CGAL=ON
 
       - name: Build
@@ -90,13 +96,22 @@ jobs:
   ####################
 
   Windows:
-    name: Windows (${{ matrix.config }}, ${{ fromJSON('["HeaderOnly", "Static"]')[matrix.static == 'ON'] }})
+    name: Windows ${{ matrix.config }} ${{ fromJSON('["HeaderOnly", "Static"]')[matrix.static == 'ON'] }} ${{ matrix.tutorial == 'ON' && 'tutorial' }} ${{ matrix.tests == 'OFF' && 'tests'}}
     runs-on: windows-2022
     strategy:
       fail-fast: false
       matrix:
         config: [Release]
-        static: [ON, OFF]
+        include: 
+          - static: ON
+            tutorial: ON
+            tests: ON
+          - static: OFF
+            tutorial: OFF
+            tests: ON
+          - static: OFF
+            tutorial: ON
+            tests: OOFF
     steps:
       - name: Checkout repository
         uses: actions/checkout@v1
@@ -134,9 +149,11 @@ jobs:
             -DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
             -DLIBIGL_USE_STATIC_LIBRARY=${{ matrix.static }} ^
             -DLIBIGL_COPYLEFT_CGAL=ON ^
+            -DLIBIGL_BUILD_TUTORIAL=${{ matrix.tutorial }} ^
+            -DLIBIGL_BUILD_TESTS=${{ matrix.tests }} ^
             -B build ^
             -S .
-          cmake --build build -j2
+          cmake --build build -j1
 
       - name: Tests
         run: cd build; ctest --verbose -j2