Skip to content

Commit 23d9c47

Browse files
committed
fix: windows ci
1 parent d3c28eb commit 23d9c47

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,24 @@ jobs:
4545
with:
4646
submodules: recursive
4747

48-
- name: Set up vcpkg
48+
# Simplified vcpkg setup that should work more reliably
49+
- name: Install vcpkg
4950
uses: lukka/run-vcpkg@v11
5051
with:
5152
vcpkgGitCommitId: 5568f110b509a9fd90711978a7cb76bae75bb092
53+
setupOnly: true
5254

5355
- name: Install SDL2
5456
run: |
55-
vcpkg install sdl2:x64-windows
57+
$VCPKG_ROOT/vcpkg install sdl2:x64-windows
58+
shell: bash
5659

5760
- name: Configure
5861
shell: powershell
5962
run: |
6063
mkdir build
6164
cd build
62-
cmake .. -DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_HEADLESS_TESTS=ON
65+
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release -DBUILD_HEADLESS_TESTS=ON
6366
6467
- name: Build
6568
shell: powershell

0 commit comments

Comments
 (0)