Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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