Skip to content

Commit

Permalink
Add wheels for Linux aarch64 architecture
Browse files Browse the repository at this point in the history
- see #56
  • Loading branch information
mrbean-bremen committed Jan 16, 2023
1 parent eedae86 commit 09368f6
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pytest-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
arch: ['x64', 'x86']

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
python-version: ['3.7', '3.8', '3.9', '3.10']

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

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

Expand Down Expand Up @@ -85,12 +85,12 @@ jobs:
python-version: ['3.7', '3.8', '3.9', '3.10']

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

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

Expand Down
37 changes: 29 additions & 8 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,7 +187,7 @@ 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 }}

Expand Down Expand Up @@ -212,7 +233,7 @@ jobs:

steps:
- name: Download the wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: wheels
path: dist/
Expand Down
9 changes: 9 additions & 0 deletions docs/changes/v1.3.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _v1.3.0:

1.3.0
=====

Changes
.......

* Updated OpenJPEG version to 2.5.0
9 changes: 9 additions & 0 deletions docs/changes/v1.3.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _v1.3.1:

1.3.1
=====

Changes
.......

* Added wheels for Linux aarch64 architecture
2 changes: 1 addition & 1 deletion openjpeg/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re


__version__ = '1.3.0'
__version__ = '1.3.1'


VERSION_PATTERN = r"""
Expand Down

0 comments on commit 09368f6

Please sign in to comment.