Skip to content

Commit e8a378b

Browse files
committed
fix: window ci
1 parent 3eb791e commit e8a378b

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,29 @@ jobs:
3636
with:
3737
submodules: recursive
3838

39-
- name: Configure
40-
run: cmake -B build
39+
- name: Install vcpkg and SDL2
40+
run: |
41+
# Clone vcpkg
42+
git clone https://github.com/Microsoft/vcpkg.git
43+
cd vcpkg
44+
45+
# Bootstrap vcpkg
46+
.\bootstrap-vcpkg.bat
47+
48+
# Install SDL2
49+
.\vcpkg install sdl2:x64-windows
50+
51+
# Integrate with Visual Studio
52+
.\vcpkg integrate install
53+
54+
cd ..
55+
56+
- name: Configure with vcpkg
57+
run: |
58+
cmake -B build -DCMAKE_TOOLCHAIN_FILE="$PWD/vcpkg/scripts/buildsystems/vcpkg.cmake"
4159
4260
- name: Build
4361
run: cmake --build build --config Release
4462

4563
- name: Test
46-
run: build/bin/Release/RobotCPPSDLTest.exe --ci-mode true
64+
run: build/bin/Release/RobotCPPSDLTest.exe --gtest_filter=-*InteractiveMode --ci-mode true

0 commit comments

Comments
 (0)