Skip to content

Commit

Permalink
Merge pull request #75 from sir-gon/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sir-gon authored Jan 15, 2025
2 parents 9ef98c8 + b19f9bc commit a3541ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/cpp-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ jobs:
- name: Install
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install vcpkg
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Linux" ]; then
echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
fi
export VCPKG_VERSION=2024.12.16
brew install vcpkg
git clone \
--depth 1 \
--branch $VCPKG_VERSION \
https://github.com/microsoft/vcpkg.git \
--single-branch \
"$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
- name: Check Tools
run: |
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ clean:
touch ./coverage/.gitkeep
sh -c "rm -fr -v ./vcpkg_installed" || true

clean/test:
find . -name "*.gcda" -print -delete || true

prebuild: dependencies
cmake --preset debug -B build

Expand Down Expand Up @@ -92,7 +95,7 @@ test/styling:
format:
clang-format -i --verbose $(FILES)

test: env dependencies build
test: env dependencies build clean/test
cd build && make test

coverage: test
Expand Down

0 comments on commit a3541ca

Please sign in to comment.