@@ -12,23 +12,40 @@ jobs:
1212 strategy :
1313 matrix :
1414 config : [Release, Debug]
15- toolchain : [v143, clangcl]
15+ toolchain : [windows-msvc, windows-clang-cl]
16+ standalone : [OFF, ON]
17+ generate : [Visual Studio 17 2022, Ninja]
18+ arch : [x64, Win32]
19+ exclude :
20+ - toolchain : windows-clang-cl
21+ arch : Win32
1622 steps :
1723 - uses : actions/checkout@v4
18- - name : Build
24+ - name : Build Visual Studio
25+ if : ${{ matrix.generate == 'Visual Studio 17 2022' }}
1926 run : |
20- cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T ${{ matrix.toolchain }} -A x64 -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }}
21- cmake --build ./build/x64
27+ cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain/${{ matrix.toolchain }}.cmake" -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DPRISM_STANDALONE=${{ matrix.standalone }}
28+ cmake --build ./build/${{ matrix.arch }}
29+ - name : Setup Variables
30+ if : ${{ matrix.generate == 'Ninja' }}
31+ uses : ilammy/msvc-dev-cmd@v1
32+ with :
33+ arch : ${{ matrix.arch }}
34+ - name : Build Ninja
35+ if : ${{ matrix.generate == 'Ninja' }}
36+ run : |
37+ cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain/${{ matrix.toolchain }}.cmake" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DPRISM_STANDALONE=${{ matrix.standalone }}
38+ cmake --build ./build/${{ matrix.arch }}
2239 - name : Publish packaged artifacts
23- if : ${{ matrix.config == 'Release' }}
40+ if : ${{ matrix.config == 'Release' && matrix.generate == 'Visual Studio 17 2022' && matrix.standalone == 'ON' }}
2441 uses : actions/upload-artifact@v4
2542 with :
26- name : prism-windows-x64 -${{ matrix.config }}
27- path : build/x64/Release /prism.exe
43+ name : prism-windows-${{ matrix.arch }} -${{ matrix.config }}
44+ path : build/${{ matrix.arch }}/${{ matrix.config }} /prism.exe
2845 - name : Test
2946 continue-on-error : true
3047 run : |
31- cd build/x64
48+ cd build/${{ matrix.arch }}
3249 ctest -j -C Debug
3350 - name : Echo Test Results
34- run : cat build/x64 /Testing/Temporary/LastTest.log
51+ run : cat build/${{ matrix.arch }} /Testing/Temporary/LastTest.log
0 commit comments