Skip to content

Commit 795086f

Browse files
committed
Add support for arm64 in github workflow
1 parent 48de0ad commit 795086f

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/wheels.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
name: Build
22

3-
on: [workflow_dispatch, release]
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- master
8+
- main
9+
push:
10+
branches:
11+
- master
12+
- main
13+
release:
14+
types:
15+
- published
416

517
jobs:
618
build_wheels:
7-
name: Build wheels on ${{ matrix.os }}
19+
name: ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
820
runs-on: ${{ matrix.os }}
921
strategy:
22+
fail-fast: false
1023
matrix:
11-
os: [ubuntu-20.04, macOS-11]
24+
os: [macos-latest, ubuntu-latest]
25+
arch: [auto64]
26+
include:
27+
- os: macos-latest
28+
arch: universal2
1229

1330
steps:
1431
- uses: actions/checkout@v3
1532
with:
16-
submodules: recursive
33+
fetch-depth: 0
34+
submodules: true
35+
1736
# Used to host cibuildwheel
1837
- uses: actions/setup-python@v3
1938
# Installs poetry
@@ -25,9 +44,9 @@ jobs:
2544

2645
- name: Build wheels
2746
run: python -m cibuildwheel --output-dir wheelhouse
28-
# to supply options, put them in 'env', like:
29-
# env:
30-
# CIBW_SOME_OPTION: value
47+
env:
48+
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
49+
CIBW_TEST_SKIP: '*_arm64 *_universal2:arm64'
3150

3251
- uses: actions/upload-artifact@v3
3352
with:

0 commit comments

Comments
 (0)