Skip to content

ci: update arm64 runners to arm-4core-linux-ubuntu24.04 [2.21] #13289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 6 additions & 19 deletions .github/workflows/build_python_3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
MATRIX_INCLUDE=$(
{
cibuildwheel --print-build-identifiers --platform linux --arch x86_64,i686 | jq -cR '{only: ., os: "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform linux --arch aarch64 | jq -cR '{only: ., os: "arm-4core-linux"}' \
&& cibuildwheel --print-build-identifiers --platform linux --arch aarch64 | jq -cR '{only: ., os: "arm-4core-linux-ubuntu24.04"}' \
&& cibuildwheel --print-build-identifiers --platform windows --arch AMD64,x86 | grep -v 313 | jq -cR '{only: ., os: "windows-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos --arch x86_64,universal2 | jq -cR '{only: ., os: "macos-13"}'
} | jq -sc
Expand All @@ -57,33 +57,20 @@ jobs:
fetch-depth: 0

- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
if: matrix.os != 'arm-4core-linux'
if: matrix.os != 'arm-4core-linux-ubuntu24.04'
name: Install Python
with:
python-version: '3.8'

- name: Install docker and pipx
if: matrix.os == 'arm-4core-linux'
# The ARM64 Ubuntu has less things installed by default
# We need docker, pip and venv for cibuildwheel
# acl allows us to use docker in the same session
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -a -G docker $USER
sudo apt install -y acl python3.10-venv python3-pip
sudo setfacl --modify user:runner:rw /var/run/docker.sock
python3 -m pip install pipx

- name: Set up QEMU
if: runner.os == 'Linux' && matrix.os != 'arm-4core-linux'
if: runner.os == 'Linux' && matrix.os != 'arm-4core-linux-ubuntu24.04'
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
with:
platforms: all

- name: Build wheels arm64
if: always() && matrix.os == 'arm-4core-linux'
run: /home/runner/.local/bin/pipx run cibuildwheel==2.22.0 --only ${{ matrix.only }}
if: always() && matrix.os == 'arm-4core-linux-ubuntu24.04'
run: pipx run cibuildwheel==2.22.0 --only ${{ matrix.only }}
env:
CIBW_SKIP: ${{ inputs.cibw_skip }}
CIBW_PRERELEASE_PYTHONS: ${{ inputs.cibw_prerelease_pythons }}
Expand Down Expand Up @@ -116,7 +103,7 @@ jobs:
# CIBW_BUILD_VERBOSITY_MACOS: 3

- name: Build wheels
if: always() && matrix.os != 'arm-4core-linux'
if: always() && matrix.os != 'arm-4core-linux-ubuntu24.04'
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
with:
only: ${{ matrix.only }}
Expand Down
Loading