try add clang cl

This commit is contained in:
coco875
2025-08-06 09:16:54 -06:00
committed by Lywx
parent fd8fa0d44b
commit 7e6fc658cb
3 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -12,19 +12,19 @@ jobs:
strategy:
matrix:
config: [Release, Debug]
toolchain: [cmake/toolchain/windows-msvc, clangcl]
toolchain: [cmake/toolchain/windows-msvc.cmake, cmake/toolchain/windows-clang-cl.cmake]
standalone: [OFF, ON]
generate: [Visual Studio 17 2022, Ninja]
arch: [x64, Win32]
exclude:
- toolchain: clangcl
- toolchain: cmake/toolchain/windows-clang-cl
arch: Win32
steps:
- uses: actions/checkout@v4
- name: Build Visual Studio
if: ${{ matrix.generate == 'Visual Studio 17 2022' }}
run: |
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="${{ matrix.toolchain }}" -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build ./build/${{ matrix.arch }}
- name: Setup Ninja
if: ${{ matrix.generate == 'Ninja' }}
@@ -38,7 +38,7 @@ jobs:
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
- name: Build Ninja clang-cl
if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'clangcl' }}
if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'cmake/toolchain/windows-clang-cl.cmake' }}
run: |
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_LINKER=lld-link.exe -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
+1
View File
@@ -0,0 +1 @@
set(CMAKE_GENERATOR_TOOLSET "clangcl")