-
Notifications
You must be signed in to change notification settings - Fork 118
69 lines (62 loc) · 2.15 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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: |
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