From c9e5e77178ee620f3b2ed5a7bd1fb21d524d7f35 Mon Sep 17 00:00:00 2001 From: Isotr0py <2037008807@qq.com> Date: Sat, 30 Sep 2023 12:57:54 +0800 Subject: [PATCH] add LD_LIBRARY_PATH --- .github/workflows/CI.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3f8939b..f6ed4ce 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,7 +23,6 @@ permissions: jobs: linux: runs-on: ubuntu-latest - container: dockcross/linux-x86_64-full timeout-minutes: 60 strategy: matrix: @@ -53,23 +52,23 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter --all-features + args: --release --out wheels --find-interpreter --all-features sccache: 'true' manylinux: auto docker-options: | -e RUST_BACKTRACE=1 -e DEP_JXL_LIB=${{ github.workspace }}/libjxl/build/lib - container: off + -e LD_LIBRARY_PATH=/usr/local/lib/ # before-script-linux: | # yum install -y cmake clang doxygen extra-cmake-modules ninja-build - # - name: Fix wheels with auditwheel - # run: | - # pip install auditwheel - # for wheel in ${{ github.workspace }}/wheels/*manylinux*.whl; do - # echo "Processing $wheel" - # auditwheel repair "$wheel" --plat manylinux_2_17_x86_64 --wheel-dir dist - # done + - name: Fix wheels with auditwheel + run: | + pip install auditwheel + for wheel in ${{ github.workspace }}/wheels/*manylinux*.whl; do + echo "Processing $wheel" + auditwheel repair "$wheel" --plat manylinux_2_17_x86_64 --wheel-dir dist + done - name: Upload wheels uses: actions/upload-artifact@v3