@@ -2,11 +2,6 @@ name: CI
22
33on :
44 workflow_dispatch :
5- inputs :
6- use_qemu :
7- description : ' Use qemu to build linux ppc64le, s390x & riscv64'
8- required : true
9- default : true
105 schedule :
116 - cron : ' 0 18 * * 5' # "At 18:00 on Friday."
127 pull_request :
@@ -21,9 +16,6 @@ concurrency:
2116 group : ${{ github.workflow }}-${{ github.ref }}
2217 cancel-in-progress : true
2318
24- env :
25- USE_QEMU : ${{ fromJSON(github.event.inputs.use_qemu || 'false') || (github.event_name == 'schedule') || startsWith(github.ref, 'refs/tags/') }}
26-
2719jobs :
2820 lint :
2921 name : Lint
@@ -47,100 +39,78 @@ jobs:
4739 - os : ubuntu-latest
4840 arch : " x86_64"
4941 build : " manylinux_"
50- use_qemu : false
5142 - os : ubuntu-latest
5243 arch : " x86_64"
5344 build : " musllinux_"
54- use_qemu : false
5545 - os : ubuntu-latest
5646 arch : " i686"
5747 build : " manylinux_"
58- use_qemu : false
5948 - os : ubuntu-latest
6049 arch : " i686"
6150 build : " musllinux_"
62- use_qemu : false
6351 - os : ubuntu-24.04-arm
6452 arch : " aarch64"
6553 build : " manylinux_"
66- use_qemu : false
6754 - os : ubuntu-24.04-arm
6855 arch : " aarch64"
6956 build : " musllinux_"
70- use_qemu : false
7157 - os : ubuntu-latest
7258 arch : " ppc64le"
7359 build : " manylinux_"
74- use_qemu : true
7560 - os : ubuntu-latest
7661 arch : " ppc64le"
7762 build : " musllinux_"
78- use_qemu : true
7963 - os : ubuntu-latest
8064 arch : " s390x"
8165 build : " manylinux_"
82- use_qemu : true
8366 - os : ubuntu-latest
8467 arch : " s390x"
8568 build : " musllinux_"
86- use_qemu : true
8769 - os : ubuntu-latest
8870 arch : " riscv64"
8971 build : " manylinux_"
90- use_qemu : true
9172 - os : ubuntu-latest
9273 arch : " riscv64"
9374 build : " musllinux_"
94- use_qemu : true
9575 - os : ubuntu-24.04-arm
9676 arch : " armv7l"
9777 build : " manylinux_"
98- use_qemu : false
9978 - os : ubuntu-24.04-arm
10079 arch : " armv7l"
10180 build : " musllinux_"
102- use_qemu : false
10381 - os : windows-2022
10482 arch : " AMD64"
10583 build : " "
106- use_qemu : false
10784 - os : windows-11-arm
10885 arch : " ARM64"
10986 build : " "
110- use_qemu : false
11187 - os : windows-2022
11288 arch : " x86"
11389 build : " "
114- use_qemu : false
11590 - os : macos-14
11691 arch : " universal2"
11792 build : " "
118- use_qemu : false
11993
12094 steps :
12195 - uses : actions/checkout@v5
122- if : (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
12396 with :
12497 fetch-depth : 0 # required for versioneer to find tags
12598
12699 - uses : astral-sh/setup-uv@v6
127- if : (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
128100 with :
129101 enable-cache : false
130102
131103 - name : Set up QEMU
104+ if : matrix.arch == 'ppc64le' || matrix.arch == 'riscv64' || matrix.arch == 's390x'
132105133- if : matrix.use_qemu && fromJSON(env.USE_QEMU)
134106
135107 - name : Build wheels
136108137- if : (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
138109 env :
139110 CIBW_ARCHS : " ${{ matrix.arch }}"
140111 CIBW_BUILD : " cp310-${{ matrix.build }}*"
141112
142113 - uses : actions/upload-artifact@v4
143- if : (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
144114 with :
145115 name : cibw-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
146116 path : ./wheelhouse/*.whl
0 commit comments