Skip to content

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

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

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

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-12, macos-13]
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
include:
- python-version: '3.9'
python-installer: 'macos11.pkg'
- python-version: '3.10'
python-installer: 'macos11.pkg'
- python-version: '3.11'
python-installer: 'macos11.pkg'
- python-version: '3.12'
python-installer: 'macos11.pkg'
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Python from python.org
run: |
installer="python-${{ matrix.python-version }}-${{ matrix.python-installer }}"
url="https://www.python.org/ftp/python/${{ matrix.python-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: |
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