Use MacOS 13 (x86_64) and 14 (arm64) for wheels #4
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: Build MacOS Wheels | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-test-deploy: | |
name: Build MacOS Wheels | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
os: [macos-14] | |
include: | |
- python-version: '3.8' | |
python-org-version: '3.8.9' | |
python-installer: 'macosx10.9.pkg' | |
- python-version: '3.9' | |
python-org-version: '3.9.13' | |
python-installer: 'macos11.pkg' | |
- python-version: '3.10' | |
python-org-version: '3.10.11' | |
python-installer: 'macos11.pkg' | |
- python-version: '3.11' | |
python-org-version: '3.11.7' | |
python-installer: 'macos11.pkg' | |
- python-version: '3.12' | |
python-org-version: '3.12.0' | |
python-installer: 'macos11.pkg' | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Python from python.org | |
run: | | |
installer="python-${{ matrix.python-org-version }}-${{ matrix.python-installer }}" | |
url="https://www.python.org/ftp/python/${{ matrix.python-org-version }}/${installer}" | |
curl -LO $url | |
sudo installer -pkg $installer -target / | |
- name: Install OSX System Dependencies | |
run: | | |
brew install --cask xquartz | |
brew install flex bison mpich | |
brew unlink mpich && brew install openmpi | |
cmake --version | |
# Uninstall libomp for compatibility with issue #817 | |
brew uninstall --ignore-dependencies libomp || echo "libomp doesn't exist" | |
- name: Build MacOS Wheel | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.15' | |
PATH: /opt/homebrew/opt/flex/bin:/opt/homebrew/opt/bison/bin:$PATH | |
SDKROOT: $(xcrun --sdk macosx --show-sdk-path) | |
NRN_BUILD_FOR_UPLOAD: '1' | |
run: | | |
bash packaging/python/build_wheels.bash osx ${{ matrix.python-version }} coreneuron | |
- name: Upload wheel files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: macos-wheels-${{ matrix.python-version }} | |
path: wheelhouse/*.whl |