File tree Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
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
4
16
5
17
jobs :
6
18
build_wheels :
7
- name : Build wheels on ${{ matrix.os }}
19
+ name : ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
8
20
runs-on : ${{ matrix.os }}
9
21
strategy :
22
+ fail-fast : false
10
23
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
12
29
13
30
steps :
14
31
- uses : actions/checkout@v3
15
32
with :
16
- submodules : recursive
33
+ fetch-depth : 0
34
+ submodules : true
35
+
17
36
# Used to host cibuildwheel
18
37
- uses : actions/setup-python@v3
19
38
# Installs poetry
25
44
26
45
- name : Build wheels
27
46
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 '
31
50
32
51
- uses : actions/upload-artifact@v3
33
52
with :
You can’t perform that action at this time.
0 commit comments