File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,17 @@ 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
- echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
32
- elif [ "$RUNNER_OS" == "Linux" ]; then
33
- echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
34
- elif [ "$RUNNER_OS" == "Windows" ]; then
35
- echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
36
- fi
27
+ export VCPKG_VERSION=2024.12.16
28
+ brew install vcpkg
29
+ git clone \
30
+ --depth 1 \
31
+ --branch $VCPKG_VERSION \
32
+ https://github.com/microsoft/vcpkg.git \
33
+ --single-branch \
34
+ "$HOME/vcpkg"
35
+ export VCPKG_ROOT="$HOME/vcpkg"
36
+ sh $VCPKG_ROOT/bootstrap-vcpkg.sh
37
+ echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
37
38
38
39
- name : Check Tools
39
40
run : |
Original file line number Diff line number Diff line change 55
55
touch ./coverage/.gitkeep
56
56
sh -c " rm -fr -v ./vcpkg_installed" || true
57
57
58
+ clean/test :
59
+ find . -name " *.gcda" -print -delete || true
60
+
58
61
prebuild : dependencies
59
62
cmake --preset debug -B build
60
63
@@ -92,7 +95,7 @@ test/styling:
92
95
format :
93
96
clang-format -i --verbose $(FILES )
94
97
95
- test : env dependencies build
98
+ test : env dependencies build clean/test
96
99
cd build && make test
97
100
98
101
coverage : test
You can’t perform that action at this time.
0 commit comments