From 6e032329f1c19d990a9dd2798b5627268006a9c9 Mon Sep 17 00:00:00 2001 From: Isotr0py <41363108+Isotr0py@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:35:59 +0800 Subject: [PATCH] :wrench:(CI): speed up CI workflow (#28) * :wrench:(CI): windows dynamic linking --- .github/workflows/CI.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0069032..c8620a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -147,9 +147,7 @@ jobs: update: true install: >- mingw-w64-x86_64-toolchain - mingw-w64-x86_64-cmake - mingw-w64-x86_64-ninja - # mingw-w64-x86_64-libjxl + mingw-w64-x86_64-libjxl - name: Put MSYS2_MinGW64 on PATH # there is not yet an environment variable for this path from msys2/setup-msys2 @@ -161,27 +159,14 @@ jobs: python-version: '3.10' architecture: ${{ matrix.target }} - - name: Build libjxl - run: | - git clone --recurse-submodules --depth 1 -b v0.10.2 https://github.com/libjxl/libjxl.git - cd libjxl - cmake -B build -G Ninja -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 - - name: Build wheels uses: PyO3/maturin-action@v1 env: RUST_BACKTRACE: 1 - DEP_JXL_LIB: ${{ github.workspace }}/libjxl/build/lib - DEP_BROTLI_LIB: ${{ github.workspace }}/libjxl/build/third_party/brotli - DEP_HWY_LIB: ${{ github.workspace }}/libjxl/build/third_party/highway with: rust-toolchain: stable-x86_64-pc-windows-gnu target: x86_64-pc-windows-gnu - args: --release --out wheels --find-interpreter + args: --release --out wheels --find-interpreter --features dynamic sccache: 'true' - name: Fix wheels with delvewheel @@ -211,7 +196,7 @@ jobs: brew install ninja git clone --recurse-submodules --depth 1 -b v0.10.2 https://github.com/libjxl/libjxl.git cd libjxl - cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF \ + 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