Skip to content

Commit 99a6093

Browse files
author
Dave Kozma
authored
Add native mac silicon runner
1 parent 5f17f81 commit 99a6093

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,40 @@ jobs:
7272
# name: wheels
7373
# path: dist
7474

75-
macos:
75+
macos_x86:
7676
runs-on: macos-latest
77-
strategy:
78-
matrix:
79-
target: [x86_64, aarch64]
8077
steps:
8178
- uses: actions/checkout@v3
8279
- uses: actions/setup-python@v4
8380
with:
8481
python-version: '3.10'
8582
cache: "pip"
8683
- run: pip install -r requirements.txt
87-
- name: Setup QEMU
88-
uses: docker/setup-qemu-action@v1
89-
if: ${{ matrix.target == 'aarch64' }}
9084
- name: Build wheels
9185
uses: PyO3/maturin-action@v1
9286
with:
93-
target: ${{ matrix.target }}
87+
target: x86_64
88+
args: --release --out dist --find-interpreter
89+
sccache: 'true'
90+
- name: Upload wheels
91+
uses: actions/upload-artifact@v3
92+
with:
93+
name: wheels
94+
path: dist
95+
96+
macos_aarch64:
97+
runs-on: macos-latest-large
98+
steps:
99+
- uses: actions/checkout@v3
100+
- uses: actions/setup-python@v4
101+
with:
102+
python-version: '3.10'
103+
cache: "pip"
104+
- run: pip install -r requirements.txt
105+
- name: Build wheels
106+
uses: PyO3/maturin-action@v1
107+
with:
108+
target: aarch64
94109
args: --release --out dist --find-interpreter
95110
sccache: 'true'
96111
- name: Upload wheels

0 commit comments

Comments
 (0)