Skip to content

Commit 1dde9f6

Browse files
committed
attemot2
1 parent c44b085 commit 1dde9f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/c-cpp.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +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
36+
- name: Setup vcpkg and install gtest
37+
# This action handles bootstrapping vcpkg and installing dependencies
38+
uses: microsoft/vcpkg-action@v1
39+
with:
40+
# Install the 'gtest' package
41+
port: gtest
42+
# The 'gtest' port on vcpkg includes gmock
4343

4444
# Configure and build with Meson (MSVC will be used automatically)
4545
- name: Configure (Meson)
46-
run: meson setup -Dbuild_tests=true --warnlevel 2 --buildtype release builddir --backend=ninja
46+
run: meson setup -native-file=${{ env.VCPKG_ROOT }}\scripts\buildsystems\msbuild\vcpkg.meson -Dbuild_tests=true --warnlevel 2 --buildtype release builddir --backend=ninja
4747

4848
- name: Build (Ninja)
4949
run: ninja -C builddir

0 commit comments

Comments
 (0)