From 00e1a450e3f4ae842a4ea9a6261e9cca5c9a9277 Mon Sep 17 00:00:00 2001 From: Nicholas Junge Date: Wed, 16 Apr 2025 11:28:06 +0200 Subject: [PATCH 1/2] actions: Update Linux Docker Bazel install script to version 8.2.0 Bazel 8.2.0 was released on April 14, earlier this week. --- .github/install_bazel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/install_bazel.sh b/.github/install_bazel.sh index 1b0d63c98e..a1693b87ea 100644 --- a/.github/install_bazel.sh +++ b/.github/install_bazel.sh @@ -4,7 +4,7 @@ if ! bazel version; then arch="arm64" fi echo "Downloading $arch Bazel binary from GitHub releases." - curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/7.1.1/bazel-7.1.1-linux-$arch" + curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.2.0/bazel-8.2.0-linux-$arch" chmod +x $HOME/bin/bazel else # Bazel is installed for the correct architecture From 6c5e6cffe2d1fee040b27fc0d097671e6e85bf35 Mon Sep 17 00:00:00 2001 From: Nicholas Junge Date: Wed, 16 Apr 2025 11:28:52 +0200 Subject: [PATCH 2/2] 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. --- .github/workflows/wheels.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d24db9c7cc..4f0fa877a7 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -35,8 +35,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-13, macos-14, windows-latest] - + os: [ubuntu-latest, ubuntu-24.04-arm, macos-13, macos-14, windows-latest] steps: - name: Check out Google Benchmark uses: actions/checkout@v4 @@ -49,20 +48,13 @@ jobs: python-version: "3.12" - run: pip install --upgrade pip uv - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v3 - with: - platforms: all - - name: Build wheels on ${{ matrix.os }} using cibuildwheel - uses: pypa/cibuildwheel@v2.22.0 + uses: pypa/cibuildwheel@v2.23.2 env: CIBW_BUILD: "cp310-* cp311-* cp312-*" CIBW_BUILD_FRONTEND: "build[uv]" CIBW_SKIP: "*-musllinux_*" - CIBW_ARCHS_LINUX: auto64 aarch64 - CIBW_ARCHS_WINDOWS: auto64 + CIBW_ARCHS: auto64 CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh # Grab the rootless Bazel installation inside the container. CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin