File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments