浏览代码

Added MSVC clang to the builds (#346)

Jorrit Rouwe 2 年之前
父节点
当前提交
d0de9817df
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      .github/workflows/build.yml

+ 21 - 0
.github/workflows/build.yml

@@ -161,6 +161,27 @@ jobs:
     - name: Build
     - name: Build
       run: msbuild Build\VS2022_CL_ARM_32_BIT\JoltPhysics.sln /property:Configuration=${{matrix.build_type}}
       run: msbuild Build\VS2022_CL_ARM_32_BIT\JoltPhysics.sln /property:Configuration=${{matrix.build_type}}
 
 
+  msvc_clang:
+    runs-on: windows-latest
+    name: Visual Studio Clang
+    strategy:
+        fail-fast: false
+        matrix:
+            build_type: [Debug, Release, Distribution]
+
+    steps:
+    - name: Checkout Code
+      uses: actions/checkout@v3
+    - name: Add msbuild to PATH
+      uses: microsoft/[email protected]
+    - name: Configure CMake
+      run: cmake -B ${{github.workspace}}/Build/VS2022_Clang -G "Visual Studio 17 2022" -A x64 -T ClangCL Build
+    - name: Build
+      run: msbuild Build\VS2022_Clang\JoltPhysics.sln /property:Configuration=${{matrix.build_type}}
+    - name: Test
+      working-directory: ${{github.workspace}}/Build/VS2022_Clang/${{matrix.build_type}}
+      run: ./UnitTests.exe
+
   macos:
   macos:
     runs-on: macos-latest
     runs-on: macos-latest
     name: macOS
     name: macOS