Skip to content

Commit

Permalink
Manually install vcpkg on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Oct 30, 2024
1 parent c3d8835 commit ac666c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
run: ctest -R "benchmark$" --test-dir "cmake-build" || exit $?
build-mac:
name: Build ${{ matrix.os }} ${{ matrix.build_type }} with ${{ matrix.preset }}
env:
VCPKG_INSTALLATION_ROOT: "$HOME/vcpkg"
strategy:
matrix:
os: [macos-14]
Expand All @@ -63,8 +65,16 @@ jobs:
- name: Install system dependencies
run: |
brew install ninja || exit $?
brew install gcc@12 || exit $?
brew install pkg-config || exit $?
brew install autoconf || exit $?
brew install autoconf-archive || exit $?
brew install automake || exit $?
brew install make || exit $?
brew install libtool || exit $?
- name: Get vcpkg
run: |
git clone https://github.com/microsoft/vcpkg "$VCPKG_INSTALLATION_ROOT"
"$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh"
- name: Configure
run: |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} \
Expand Down

0 comments on commit ac666c4

Please sign in to comment.