Skip to content

Commit

Permalink
Add building aarch64 wheels
Browse files Browse the repository at this point in the history
- taken from python-gdcm
- see #42
  • Loading branch information
mrbean-bremen committed Jan 15, 2023
1 parent 692da5e commit 5dc15cf
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
Expand All @@ -25,7 +25,7 @@ jobs:
python setup.py sdist
- name: Store artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./dist
Expand Down Expand Up @@ -97,6 +97,20 @@ jobs:
platform_id: manylinux_x86_64
manylinux_image: manylinux2014

# Linux aarch64
- os: ubuntu-latest
python: 37
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 38
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 39
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 310
platform_id: manylinux_aarch64

# MacOS x86_64
- os: macos-latest
python: 37
Expand All @@ -123,11 +137,17 @@ jobs:
platform_id: macosx_arm64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v2
- name: Set up QEMU
if: ${{ matrix.platform_id == 'manylinux_aarch64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.9'
Expand All @@ -143,13 +163,14 @@ jobs:
CIBW_ARCHS: all
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD_VERBOSITY: 1
run: |
python --version
python -m cibuildwheel --output-dir dist
- name: Store artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./dist
Expand All @@ -166,12 +187,12 @@ jobs:

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Download the wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: wheels
path: dist/
Expand Down Expand Up @@ -213,7 +234,7 @@ jobs:

steps:
- name: Download the wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: wheels
path: dist/
Expand Down

0 comments on commit 5dc15cf

Please sign in to comment.