Skip to content

Commit

Permalink
Merge pull request #6 from Isotr0py/dev
Browse files Browse the repository at this point in the history
CI: manylinux aarch64 support
  • Loading branch information
Isotr0py authored Oct 4, 2023
2 parents 0042253 + d9cc2b4 commit 5c72e36
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5c72e36

Please sign in to comment.