-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Isotr0py/dev
CI: manylinux aarch64 support
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ jobs: | |
docker_image: quay.io/pypa/manylinux2014_x86_64:latest | ||
- target: x86 | ||
docker_image: quay.io/pypa/manylinux2014_i686:latest | ||
- target: aarch64 | ||
distro: ubuntu_latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -56,6 +58,58 @@ jobs: | |
-DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_OPENEXR=OFF | ||
cmake --build build | ||
cmake --install build | ||
- name: Build libjxl (non-x86) | ||
if: ${{ !contains(matrix.target, 'x86')}} | ||
uses: uraimo/[email protected] | ||
with: | ||
arch: ${{ matrix.target }} | ||
distro: ${{ matrix.distro }} | ||
|
||
# Not required, but speeds up builds | ||
githubToken: ${{ github.token }} | ||
|
||
# Mount the artifacts directory as /artifacts in the container | ||
dockerRunArgs: | | ||
--volume "${{ github.workspace }}:/workspace" | ||
# The shell to run commands with in the container | ||
shell: /bin/sh | ||
|
||
# Install some dependencies in the container. This speeds up builds if | ||
# you are also using githubToken. Any dependencies installed here will | ||
# be part of the container image that gets cached, so subsequent | ||
# builds don't have to re-install them. The image layer is cached | ||
# publicly in your project's package repository, so it is vital that | ||
# no secrets are present in the container state or logs. | ||
install: | | ||
case "${{ matrix.distro }}" in | ||
ubuntu*|jessie|stretch|buster|bullseye) | ||
apt-get update -q -y | ||
apt-get install -q -y git build-essential | ||
;; | ||
fedora*) | ||
dnf -y update | ||
dnf -y install git which | ||
;; | ||
alpine*) | ||
apk update | ||
apk add git | ||
;; | ||
esac | ||
# Produce a binary artifact and place it in the mounted volume | ||
run: | | ||
cd /workspace | ||
apt-get install -y cmake ninja-build | ||
git clone --recurse-submodules --depth 1 -b v0.8.2 https://github.com/libjxl/libjxl.git | ||
cd libjxl | ||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \ | ||
-DJPEGXL_ENABLE_TOOLS=OFF -DJPEGXL_ENABLE_DOXYGEN=OFF -DJPEGXL_ENABLE_MANPAGES=OFF \ | ||
-DJPEGXL_ENABLE_BENCHMARKS=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF -DJPEGXL_ENABLE_JNI=OFF \ | ||
-DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_OPENEXR=OFF | ||
cmake --build build | ||
cmake --install build | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
|