Skip to content

Use MacOS 13 (x86_64) and 14 (arm64) for wheels #12

Use MacOS 13 (x86_64) and 14 (arm64) for wheels

Use MacOS 13 (x86_64) and 14 (arm64) for wheels #12

Workflow file for this run

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: Install readline
run: |
sudo mkdir -p /opt/nrnwheel/$(uname -m)
sudo bash packaging/python/build_static_readline_osx.bash
- name: Build MacOS Wheel
run: |
echo "PATH=/opt/homebrew/opt/flex/bin:/opt/homebrew/opt/bison/bin:$PATH" >> $GITHUB_ENV
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