Skip to content

Commit f8c3ec2

Browse files
briaguya0claude
authored andcommitted
ci: install spdlog on windows via vcpkg with chainload toolchain
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2e595b1 commit f8c3ec2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/windows.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
standalone: OFF
2626
steps:
2727
- uses: actions/checkout@v4
28+
- name: Install spdlog via vcpkg
29+
run: vcpkg install spdlog:${{ matrix.arch == 'x64' && 'x64-windows' || 'x86-windows' }}
2830
- name: Build Visual Studio
2931
if: ${{ matrix.generate == 'Visual Studio 17 2022' }}
3032
run: |
31-
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 }}
33+
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="${{ github.workspace }}/cmake/toolchain/${{ matrix.toolchain }}.cmake" -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DPRISM_STANDALONE=${{ matrix.standalone }}
3234
cmake --build ./build/${{ matrix.arch }}
3335
- name: Setup Variables
3436
if: ${{ matrix.generate == 'Ninja' }}
@@ -38,7 +40,7 @@ jobs:
3840
- name: Build Ninja
3941
if: ${{ matrix.generate == 'Ninja' }}
4042
run: |
41-
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 }}
43+
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="${{ github.workspace }}/cmake/toolchain/${{ matrix.toolchain }}.cmake" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DPRISM_STANDALONE=${{ matrix.standalone }}
4244
cmake --build ./build/${{ matrix.arch }}
4345
- name: Publish packaged artifacts
4446
if: ${{ matrix.config == 'Release' && matrix.generate == 'Visual Studio 17 2022' && matrix.standalone == 'ON' }}

0 commit comments

Comments
 (0)