-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (36 loc) · 986 Bytes
/
macos.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
name: macOS Wheels
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: [
"3.12-dev",
]
os: [
macOS-latest,
]
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
- name: Build wheels
run: |
python3.12 -m cibuildwheel --output-dir wheelhouse
env:
# Skip Python 2.7, 3.5, and PyPy
CIBW_BUILD: cp312-*
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
CIBW_BEFORE_BUILD: |
pip install cython==3.0.0
CIBW_TEST_COMMAND: python -m cypari.test
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl