Skip to content

Commit

Permalink
🔧(CI): speed up CI workflow (#28)
Browse files Browse the repository at this point in the history
* 🔧(CI): windows dynamic linking
  • Loading branch information
Isotr0py authored Mar 11, 2024
1 parent 1103794 commit 6e03232
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e03232

Please sign in to comment.