Skip to content

Commit

Permalink
.github/workflows/cibuildwheel.yml: Add macOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Oct 21, 2023
1 parent 615a193 commit bf59832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
arch: i686
- os: macos-latest
arch: auto
- os: macos-latest
arch: arm64
env:
CIBW_ARCHS: ${{ matrix.arch }}

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ before-all = """
wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
sed -i.bak '/invoke_make/s/install/-j1 install/' coinbrew
chmod +x coinbrew
case "$CIBW_ARCHS" in
arm64) export ARCHFLAGS="-arch arm64";;
esac
./coinbrew build Cbc@2.10.10 --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 || echo ignoring errors
"""
environment = { PATH="$(pwd)/local/bin:$PATH", LD_LIBRARY_PATH="$(pwd)/local/lib:$LD_LIBRARY_PATH", PKG_CONFIG_PATH="$(pwd)/local/lib/pkgconfig:$PKG_CONFIG_PATH" }
Expand Down

0 comments on commit bf59832

Please sign in to comment.