Skip to content

Commit

Permalink
Fix building on GitHub Actions macOS CI (#41)
Browse files Browse the repository at this point in the history
Homebrew uses the following installation prefixes:

* `/usr/local` for macOS on Intel

* `/opt/homebrew` for macOS on Apple Silicon/ARM

See: https://docs.brew.sh/FAQ#why-should-i-install-homebrew-in-the-default-location
  • Loading branch information
rmisev authored May 7, 2024
1 parent 783f323 commit 7774431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
run: brew install icu4c
- name: get dependencies
run: ./init.sh
- name: set ICU_ROOT
run: echo "ICU_ROOT=$(if [ "${{ runner.arch }}" = "ARM64" ]; then echo '/opt/homebrew/opt/icu4c'; else echo '/usr/local/opt/icu4c'; fi)" >> $GITHUB_ENV
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} ${{ matrix.cmake_options }}
env:
ICU_ROOT: /usr/local/opt/icu4c
- name: build
run: cmake --build build --config Release
- name: test
Expand Down

0 comments on commit 7774431

Please sign in to comment.