Skip to content

Commit 78c1d20

Browse files
dan-blanchardclaude
andcommitted
ci: use native runners for aarch64/riscv64 instead of QEMU
Replace QEMU emulation with native runners for Linux cross-arch builds: - x86_64 on ubuntu-latest (unchanged) - aarch64 on ubuntu-24.04-arm (free GitHub-hosted ARM runner) - riscv64 on ubuntu-24.04-riscv (free RISE RISC-V runner) All three arches now build natively in parallel instead of sequentially under QEMU. The 7.4.2 release Linux build took ~47 minutes under QEMU; this should bring it down to ~5-10 minutes. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 3cc0960 commit 78c1d20

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@ jobs:
3939
path: dist/*.whl
4040

4141
build-mypyc-wheels:
42-
name: Build mypyc wheels (${{ matrix.os }})
42+
name: Build mypyc wheels (${{ matrix.name }})
4343
runs-on: ${{ matrix.os }}
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
os: [ubuntu-latest, macos-latest]
47+
include:
48+
- { os: ubuntu-latest, name: linux-x86_64, cibw_archs_linux: x86_64 }
49+
- { os: ubuntu-24.04-arm, name: linux-aarch64, cibw_archs_linux: aarch64 }
50+
- { os: ubuntu-24.04-riscv, name: linux-riscv64, cibw_archs_linux: riscv64 }
51+
- { os: macos-latest, name: macos, cibw_archs_linux: auto }
4852
steps:
4953
- uses: actions/checkout@v4
5054
with:
5155
fetch-depth: 0
52-
- name: Set up QEMU
53-
if: runner.os == 'Linux'
54-
uses: docker/setup-qemu-action@v3
55-
with:
56-
platforms: arm64,riscv64
5756
- uses: astral-sh/setup-uv@v7
5857
- uses: pypa/[email protected]
5958
env:
59+
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
6060
CIBW_ENVIRONMENT_PASS_LINUX: HATCH_BUILD_HOOK_ENABLE_MYPYC
6161
HATCH_BUILD_HOOK_ENABLE_MYPYC: "true"
6262
- uses: actions/upload-artifact@v4
6363
with:
64-
name: dist-mypyc-${{ matrix.os }}
64+
name: dist-mypyc-${{ matrix.name }}
6565
path: wheelhouse/*.whl
6666

6767
build-mypyc-wheels-windows:

0 commit comments

Comments
 (0)