From 68776305b6e357f17a2fd23345a5ab77f242f135 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Tue, 29 Apr 2025 16:35:10 +0200 Subject: [PATCH] ci: update arm64 runners to arm-4core-linux-ubuntu24.04 (#13284) These new images are more similar to the default ones, including Docker. (cherry picked from commit 9930821cc8ed1dfd7772d6dafaf506b12ef5e23c) --- .github/workflows/build_python_3.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_python_3.yml b/.github/workflows/build_python_3.yml index 17f1c6a459a..c86748dec6a 100644 --- a/.github/workflows/build_python_3.yml +++ b/.github/workflows/build_python_3.yml @@ -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 @@ -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 }} @@ -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 }}