Skip to content

Commit 9fd89a5

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [github actions] vcpkg installation issue fixed.
1 parent 2c007ca commit 9fd89a5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/c-macos.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
brew install vcpkg
2929
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
3030
export VCPKG_ROOT="$HOME/vcpkg"
31+
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
3132
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
3233
elif [ "$RUNNER_OS" == "Linux" ]; then
3334
echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
@@ -47,7 +48,22 @@ jobs:
4748
4849
- name: Install dependencies
4950
run: |
50-
make dependencies
51+
vcpkg --x-wait-for-lock integrate install
52+
vcpkg --x-wait-for-lock install
53+
54+
- name: Pre Build
55+
run: >
56+
cmake.exe
57+
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
58+
-DCMAKE_BUILD_TYPE=Debug
59+
-DCMAKE_C_COMPILER=cl
60+
-DCMAKE_CXX_COMPILER=cl
61+
-S${{ github.workspace }}
62+
-B${{ github.workspace }}/build/default -G "MinGW Makefiles"
63+
64+
- name: Build
65+
run: |
66+
cmake --build build/default
5167
5268
- name: Build
5369
run: |

0 commit comments

Comments
 (0)