Skip to content

Commit 64151f3

Browse files
nicholasjngdmah42
andauthored
wheels: Build Linux ARM wheels natively on ARM runners (#1969)
* actions: Update Linux Docker Bazel install script to version 8.2.0 Bazel 8.2.0 was released on April 14, earlier this week. * wheels: Build all wheels on native runner platforms Since Ubuntu on ARM runners are now available, we can build wheels directly on the host machines instead of going the slow way of QEMU virtualization. --------- Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
1 parent 3231850 commit 64151f3

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/install_bazel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if ! bazel version; then
44
arch="arm64"
55
fi
66
echo "Downloading $arch Bazel binary from GitHub releases."
7-
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/7.1.1/bazel-7.1.1-linux-$arch"
7+
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.2.0/bazel-8.2.0-linux-$arch"
88
chmod +x $HOME/bin/bazel
99
else
1010
# Bazel is installed for the correct architecture

.github/workflows/wheels.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
runs-on: ${{ matrix.os }}
3636
strategy:
3737
matrix:
38-
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
39-
38+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-13, macos-14, windows-latest]
4039
steps:
4140
- name: Check out Google Benchmark
4241
uses: actions/checkout@v4
@@ -49,20 +48,13 @@ jobs:
4948
python-version: "3.12"
5049
- run: pip install --upgrade pip uv
5150

52-
- name: Set up QEMU
53-
if: runner.os == 'Linux'
54-
uses: docker/setup-qemu-action@v3
55-
with:
56-
platforms: all
57-
5851
- name: Build wheels on ${{ matrix.os }} using cibuildwheel
59-
uses: pypa/cibuildwheel@v2.22.0
52+
uses: pypa/cibuildwheel@v2.23.2
6053
env:
6154
CIBW_BUILD: "cp310-* cp311-* cp312-*"
6255
CIBW_BUILD_FRONTEND: "build[uv]"
6356
CIBW_SKIP: "*-musllinux_*"
64-
CIBW_ARCHS_LINUX: auto64 aarch64
65-
CIBW_ARCHS_WINDOWS: auto64
57+
CIBW_ARCHS: auto64
6658
CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh
6759
# Grab the rootless Bazel installation inside the container.
6860
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin

0 commit comments

Comments
 (0)