File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,12 @@ jobs:
24
24
- name : Install
25
25
shell : bash
26
26
run : |
27
- if [ "$RUNNER_OS" == "macOS" ]; then
28
- brew install vcpkg
29
- git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
30
- export VCPKG_ROOT="$HOME/vcpkg"
31
- sh $VCPKG_ROOT/bootstrap-vcpkg.sh
32
- echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
33
- elif [ "$RUNNER_OS" == "Linux" ]; then
34
- echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
35
- elif [ "$RUNNER_OS" == "Windows" ]; then
36
- echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
37
- fi
27
+ export VCPKG_VERSION=2024.12.16
28
+ brew install vcpkg
29
+ git clone --depth 1 --branch $VCPKG_VERSION https://github.com/microsoft/vcpkg.git --single-branch "$HOME/vcpkg"
30
+ export VCPKG_ROOT="$HOME/vcpkg"
31
+ sh $VCPKG_ROOT/bootstrap-vcpkg.sh
32
+ echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
38
33
39
34
- name : Check Tools
40
35
run : |
You can’t perform that action at this time.
0 commit comments