chore: use native arm runners for arm wheels (#1484) · python-zeroconf/python-zeroconf@a97d228

Original file line numberDiff line numberDiff line change

@@ -165,7 +165,14 @@ jobs:

165165

runs-on: ${{ matrix.os }}

166166

strategy:

167167

matrix:

168-

os: [ubuntu-latest, windows-2019, macos-13, macos-latest]

168+

os:

169+

[

170+

ubuntu-24.04-arm,

171+

ubuntu-latest,

172+

windows-2019,

173+

macos-13,

174+

macos-latest,

175+

]

169176

musl: ["", "musllinux"]

170177

exclude:

171178

- os: windows-2019

@@ -201,20 +208,14 @@ jobs:

201208

ref: "${{ steps.release_tag.outputs.newest_release_tag }}"

202209

fetch-depth: 0

203210
204-

- name: Set up QEMU

205-

if: runner.os == 'Linux'

206-

uses: docker/setup-qemu-action@v3

207-

with:

208-

platforms: arm64

209-
210211

- name: Build wheels (non-musl)

211212

uses: pypa/cibuildwheel@v2.22.0

212213

if: matrix.musl == ''

213214

# to supply options, put them in 'env', like:

214215

env:

215216

CIBW_SKIP: cp36-* cp37-* pp36-* pp37-* pp38-* cp38-* *p39-*_aarch64 *p310-*_aarch64 pp*_aarch64 *musllinux*

216217

CIBW_BEFORE_ALL_LINUX: apt install -y gcc || yum install -y gcc || apk add gcc

217-

CIBW_ARCHS_LINUX: auto aarch64

218+

CIBW_ARCHS_LINUX: ${matrix.os == ubuntu-24.04-arm && 'aarch64' || 'auto'}

218219

CIBW_BUILD_VERBOSITY: 3

219220

REQUIRE_CYTHON: 1

220221

@@ -225,7 +226,7 @@ jobs:

225226

env:

226227

CIBW_SKIP: cp36-* cp37-* pp36-* pp37-* pp38-* cp38-* *p39-*_aarch64 *p310-*_aarch64 pp*_aarch64 *manylinux*

227228

CIBW_BEFORE_ALL_LINUX: apt install -y gcc || yum install -y gcc || apk add gcc

228-

CIBW_ARCHS_LINUX: auto aarch64

229+

CIBW_ARCHS_LINUX: ${matrix.os == ubuntu-24.04-arm && 'aarch64' || 'auto'}

229230

CIBW_BUILD_VERBOSITY: 3

230231

REQUIRE_CYTHON: 1

231232