8000 Merge pull request #75 from sir-gon/develop · sir-gon/algorithm-exercises-cpp@a3541ca · GitHub
[go: up one dir, main page]

Skip to content

Commit a3541ca

Browse files
authored
Merge pull request #75 from sir-gon/develop
Develop
2 parents 9ef98c8 + b19f9bc commit a3541ca

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/workflows/cpp-macos.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ jobs:
2424
- name: Install
2525
shell: bash
2626
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
3738
3839
- name: Check Tools
3940
run: |

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ clean:
5555
touch ./coverage/.gitkeep
5656
sh -c "rm -fr -v ./vcpkg_installed" || true
5757

58+
clean/test:
59+
find . -name "*.gcda" -print -delete || true
60+
5861
prebuild: dependencies
5962
cmake --preset debug -B build
6063

@@ -92,7 +95,7 @@ test/styling:
9295
format:
9396
clang-format -i --verbose $(FILES)
9497

95-
test: env dependencies build
98+
test: env dependencies build clean/test
9699
cd build && make test
97100

98101
coverage: test

0 commit comments

Comments
 (0)
0