Skip to content

Commit c2eeeea

Browse files
committed
Install gtest and build tests
1 parent 4cb589e commit c2eeeea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/c-cpp.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,17 @@ jobs:
3333
python -m pip install --upgrade pip
3434
pip install meson ninja
3535
36+
- name: Install vcpkg
37+
run: |
38+
git clone https://github.com/Microsoft/vcpkg.git
39+
.\vcpkg\bootstrap-vcpkg.bat
40+
41+
- name: Install Google Test
42+
run: .\vcpkg\vcpkg install gtest:x64-windows
43+
3644
# Configure and build with Meson (MSVC will be used automatically)
3745
- name: Configure (Meson)
38-
run: meson setup --warnlevel 2 --buildtype release builddir --backend=ninja
46+
run: meson setup --warnlevel 2 --Dbuild_tests=true --buildtype release builddir --backend=ninja
3947

4048
- name: Build (Ninja)
4149
run: ninja -C builddir

0 commit comments

Comments
 (0)