Skip to content

Commit c0872ca

Browse files
committed
fix: windows ci
1 parent d3c28eb commit c0872ca

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/ci.yml

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

48-
- name: Set up vcpkg
49-
uses: lukka/run-vcpkg@v11
50-
with:
51-
vcpkgGitCommitId: 5568f110b509a9fd90711978a7cb76bae75bb092
48+
# Direct vcpkg installation without using the action
49+
- name: Clone vcpkg
50+
run: |
51+
git clone https://github.com/Microsoft/vcpkg.git
52+
cd vcpkg
53+
git checkout 5568f110b509a9fd90711978a7cb76bae75bb092
54+
.\bootstrap-vcpkg.bat
55+
shell: cmd
5256

5357
- name: Install SDL2
5458
run: |
55-
vcpkg install sdl2:x64-windows
59+
.\vcpkg\vcpkg.exe install sdl2:x64-windows
60+
shell: cmd
5661

5762
- name: Configure
5863
shell: powershell
5964
run: |
6065
mkdir build
6166
cd build
62-
cmake .. -DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_HEADLESS_TESTS=ON
67+
cmake .. -DCMAKE_TOOLCHAIN_FILE="$pwd\..\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release -DBUILD_HEADLESS_TESTS=ON
6368
6469
- name: Build
6570
shell: powershell

0 commit comments

Comments
 (0)