Skip to content

Commit

Permalink
Merge pull request #15 from kelsos/arm-runner
Browse files Browse the repository at this point in the history
ci: use arm runner for aarch64
  • Loading branch information
yabirgb authored Jan 20, 2025
2 parents 4f6e3d1 + 6300132 commit d5dd97e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,15 @@ jobs:

build_wheels_linux:
name: 'Build wheels for Linux'
runs-on: ubuntu-20.04
runs-on: ${{ matrix.arch.runner }}
strategy:
fail-fast: false
matrix:
arch: [ aarch64, native ]
arch:
- name: aarch64
runner: ubuntu-24.04-arm
- name: native
runner: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -145,26 +149,21 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: ${{ matrix.arch == 'aarch64' }}
with:
platforms: arm64
- name: prepare build directory
run: ./scripts/prepare.sh
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_LINUX: ${{ matrix.arch.name }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel=="${CIBW_VERSION}"
- name: Build wheels
working-directory: build
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_ALL_LINUX: ./build.sh
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_LINUX: ${{ matrix.arch.name }}
- uses: actions/upload-artifact@v4
with:
name: pypi-wheels-linux-${{ matrix.arch }}
name: pypi-wheels-linux-${{ matrix.arch.name }}
path: build/wheelhouse/*.whl

build_wheels_windows:
Expand Down

0 comments on commit d5dd97e

Please sign in to comment.