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 54697d1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,26 @@ 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: |
export VCPKG_INSTALLATION_ROOT="$HOME/vcpkg"
git clone https://github.com/microsoft/vcpkg "$VCPKG_INSTALLATION_ROOT"
"$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh"
echo "vcpkg_installation_root=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
- name: Configure
run: |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} \
-DFL_DEV=ON \
-DFL_TEST=ON \
-DFL_BENCHMARK=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake || exit $?
-DCMAKE_TOOLCHAIN_FILE="${{ env.vcpkg_installation_root }}/scripts/buildsystems/vcpkg.cmake" || exit $?
- name: Build
run: |
cmake --build cmake-build --parallel --config ${{ matrix.build_type }} || exit $?
Expand Down

0 comments on commit 54697d1

Please sign in to comment.