Skip to content

Commit

Permalink
🐛: use dynamic for manylinux workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Feb 4, 2024
1 parent c08087a commit 4f6f501
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,43 @@ jobs:
with:
python-version: '3.10'

- name: Build libjxl
uses: kohlerdominik/docker-run-action@v1
with:
image: ${{ matrix.docker_image }}
volumes: ${{ github.workspace }}:/workspace
workdir: /workspace
run: |
git clone --recurse-submodules --depth 1 -b v0.9.1 https://github.com/libjxl/libjxl.git
cd libjxl
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -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 libjxl
# uses: kohlerdominik/docker-run-action@v1
# with:
# image: ${{ matrix.docker_image }}
# volumes: ${{ github.workspace }}:/workspace
# workdir: /workspace
# run: |
# git clone --recurse-submodules --depth 1 -b v0.9.1 https://github.com/libjxl/libjxl.git
# cd libjxl
# cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -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
with:
target: ${{ matrix.target }}
container: ${{ matrix.docker_image }}
args: --release --out dist --find-interpreter
args: --release --out dist --find-interpreter --features dynamic
manylinux: auto
docker-options: |
-e RUST_BACKTRACE=1
-e DEP_JXL_LIB=${{ github.workspace }}/libjxl/build/lib
-e DEP_BROTLI_LIB=${{ github.workspace }}/libjxl/build/third_party/brotli
-e DEP_HWY_LIB=${{ github.workspace }}/libjxl/build/third_party/highway
before-script-linux: |
git clone --recurse-submodules --depth 1 -b v0.9.1 https://github.com/libjxl/libjxl.git
cd libjxl
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -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: Upload wheels
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 4f6f501

Please sign in to comment.