Fix CI on macOS after upgrade to macos-14 (arm64) #100
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
detached: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
brew install autoconf automake hidapi libtool libzip | |
pip3 install build | |
- name: Build libconcord | |
env: | |
CPATH: /opt/homebrew/include | |
LIBRARY_PATH: /opt/homebrew/lib | |
run: | | |
cd libconcord | |
mkdir m4; autoreconf --install | |
./configure | |
make | |
sudo make install | |
cd - | |
- name: Build libconcord Python bindings | |
run: | | |
cd libconcord/bindings/python | |
python3 -m build | |
pip3 install dist/*.whl | |
DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib python3 -c 'import libconcord; print(libconcord)' | |
cd - | |
- name: Build concordance | |
run: | | |
cd concordance | |
mkdir m4; autoreconf --install | |
./configure | |
make | |
sudo make install | |
cd - | |
concordance --version |