Skip to content

Commit 77ee737

Browse files
committed
Fix CI workflow with manual CMake toolchain path
1 parent 928489c commit 77ee737

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
name: Build & Test
2+
23
on:
34
push:
45
branches: [ main ]
56
pull_request:
67
branches: [ main ]
8+
79
jobs:
810
build:
911
runs-on: windows-2022
1012
steps:
11-
- uses: actions/checkout@v4
12-
- run: vcpkg install
13-
- run: cmake --preset=ci-windows
14-
- run: cmake --build --preset=ci-windows --config Release
15-
- run: ctest --preset=ci-windows -C Release --output-on-failure
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install vcpkg dependencies
17+
run: vcpkg install
18+
19+
- name: Configure with CMake
20+
run: cmake -DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 17 2022" -A x64 -S . -B out/build/ci-windows
21+
22+
- name: Build
23+
run: cmake --build out/build/ci-windows --config Release
1624

25+
- name: Test
26+
run: ctest --test-dir out/build/ci-windows -C Release --output-on-failure

0 commit comments

Comments
 (0)