Browse Source

Also testing PerformanceTest with UBSAN/ASAN (#1287)

Jorrit Rouwe 10 months ago
parent
commit
fed2b6c4d8
1 changed files with 11 additions and 7 deletions
  1. 11 7
      .github/workflows/build.yml

+ 11 - 7
.github/workflows/build.yml

@@ -24,7 +24,7 @@ jobs:
     strategy:
     strategy:
         fail-fast: false
         fail-fast: false
         matrix:
         matrix:
-            build_type: [Debug, Release, Distribution, ReleaseASAN, ReleaseUBSAN]
+            build_type: [Debug, Release, Distribution]
             double_precision: [No, Yes]
             double_precision: [No, Yes]
 
 
     steps:
     steps:
@@ -41,24 +41,28 @@ jobs:
 
 
   linux_clang_tsan:
   linux_clang_tsan:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    name: Linux Clang TSAN
+    name: Linux Clang Sanitizers
+    strategy:
+        fail-fast: false
+        matrix:
+            build_type: [ReleaseASAN, ReleaseUBSAN, ReleaseTSAN]
 
 
     steps:
     steps:
     - name: Checkout Code
     - name: Checkout Code
       uses: actions/checkout@v4
       uses: actions/checkout@v4
     - name: Configure CMake
     - name: Configure CMake
       working-directory: ${{github.workspace}}/Build
       working-directory: ${{github.workspace}}/Build
-      run: ./cmake_linux_clang_gcc.sh ReleaseTSAN ${{env.UBUNTU_CLANG_VERSION}} -DTARGET_VIEWER=OFF -DTARGET_SAMPLES=OFF -DTARGET_HELLO_WORLD=OFF -DTARGET_UNIT_TESTS=ON -DTARGET_PERFORMANCE_TEST=ON
+      run: ./cmake_linux_clang_gcc.sh ${{matrix.build_type}} ${{env.UBUNTU_CLANG_VERSION}} -DTARGET_VIEWER=OFF -DTARGET_SAMPLES=OFF -DTARGET_HELLO_WORLD=OFF -DTARGET_UNIT_TESTS=ON -DTARGET_PERFORMANCE_TEST=ON
     - name: Build
     - name: Build
-      run: cmake --build ${{github.workspace}}/Build/Linux_ReleaseTSAN -j $(nproc)
+      run: cmake --build ${{github.workspace}}/Build/Linux_${{matrix.build_type}} -j $(nproc)
     - name: Unit Tests
     - name: Unit Tests
-      working-directory: ${{github.workspace}}/Build/Linux_ReleaseTSAN
+      working-directory: ${{github.workspace}}/Build/Linux_${{matrix.build_type}}
       run: ctest --output-on-failure --verbose
       run: ctest --output-on-failure --verbose
     - name: Test ConvexVsMesh
     - name: Test ConvexVsMesh
-      working-directory: ${{github.workspace}}/Build/Linux_ReleaseTSAN
+      working-directory: ${{github.workspace}}/Build/Linux_${{matrix.build_type}}
       run: ./PerformanceTest -q=LinearCast -t=max -s=ConvexVsMesh
       run: ./PerformanceTest -q=LinearCast -t=max -s=ConvexVsMesh
     - name: Test Ragdoll
     - name: Test Ragdoll
-      working-directory: ${{github.workspace}}/Build/Linux_ReleaseTSAN
+      working-directory: ${{github.workspace}}/Build/Linux_${{matrix.build_type}}
       run: ./PerformanceTest -q=LinearCast -t=max -s=Ragdoll
       run: ./PerformanceTest -q=LinearCast -t=max -s=Ragdoll
 
 
   linux-clang-so:
   linux-clang-so: