From cdf5a6e69b8012887b43642ee6c21206895149f4 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 24 Jan 2025 18:18:17 +0000 Subject: [PATCH] [ci] try use Github-hosted linux arm64 runners instead of docker+qemu this should just work now https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ Fixes https://github.com/fonttools/fonttools/issues/3753 --- .github/workflows/wheels.yml | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 037f792bc..c3c768ef4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -57,6 +57,8 @@ jobs: arch: universal2 - os: windows-latest arch: auto32 + - os: ubuntu-24.04-arm + arch: aarch64 steps: - uses: actions/checkout@v4 with: @@ -78,43 +80,12 @@ jobs: name: wheels-${{ matrix.os }}-${{ matrix.arch }} path: wheelhouse/*.whl - build_arch_wheels: - name: py${{ matrix.python }} on ${{ matrix.arch }} - runs-on: ubuntu-latest - strategy: - matrix: - # aarch64 uses qemu so it's slow, build each py version in parallel jobs - python: [38, 39, 310, 311, 312, 313] - arch: [aarch64] - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: docker/setup-qemu-action@v3.3.0 - with: - # temporarily pin to qemu@v8 to workaround non-determininstic gcc segfaults - # https://github.com/docker/setup-qemu-action/issues/188 - image: tonistiigi/binfmt:qemu-v8.1.5 - platforms: all - - name: Install dependencies - run: pip install cibuildwheel - - name: Build Wheels - run: python -m cibuildwheel --output-dir wheelhouse . - env: - CIBW_BUILD: cp${{ matrix.python }}-* - CIBW_ARCHS: ${{ matrix.arch }} - - uses: actions/upload-artifact@v4 - with: - name: wheels-py${{ matrix.python }}-linux-${{ matrix.arch }} - path: wheelhouse/*.whl - deploy: name: Upload to PyPI on tagged commit runs-on: ubuntu-latest needs: - build_pure - build_wheels - - build_arch_wheels # only run if the commit is tagged... if: startsWith(github.ref, 'refs/tags/') steps: