Skip to content

Commit ee49f8f

Browse files
author
Ananyo Bhattacharya
committed
fix: use lukka/run-vcpkg with caching for Windows CI
1 parent a5c8b5a commit ee49f8f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,19 @@ jobs:
2828
2929
- name: Install dependencies (Windows)
3030
if: runner.os == 'Windows'
31+
uses: lukka/run-vcpkg@v11
32+
with:
33+
vcpkgGitCommitId: "a34c873a9717a888f58dc05268dea15592c2f0ff"
34+
35+
- name: Install SDL2 packages (Windows)
36+
if: runner.os == 'Windows'
37+
run: vcpkg install sdl2 sdl2-image sdl2-gfx sdl2-ttf sdl2-mixer --triplet x64-windows
38+
39+
- name: Build
3140
run: |
32-
vcpkg install sdl2 sdl2-image sdl2-gfx sdl2-ttf sdl2-mixer
41+
cmake -B build -DCMAKE_BUILD_TYPE=Release \
42+
${{ runner.os == 'Windows' && '-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake' || '' }}
43+
cmake --build build
3344
3445
- name: Build
3546
run: |

0 commit comments

Comments
 (0)