From 4f6f501cfadbf916cf9e4952f79977c122323ad5 Mon Sep 17 00:00:00 2001 From: Isotr0py <2037008807@qq.com> Date: Sun, 4 Feb 2024 11:45:15 +0800 Subject: [PATCH] :bug:: use dynamic for manylinux workflow --- .github/workflows/CI.yml | 41 ++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 111714f..1855b7d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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