Skip to content

Commit 0aa7f7a

Browse files
committed
🔧 (CI): Fix release CI linux build
1 parent 1606842 commit 0aa7f7a

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,43 @@ jobs:
3939
- uses: actions/setup-python@v4
4040
with:
4141
python-version: '3.10'
42+
43+
- name: Build libjxl (x86_64)
44+
if: ${{ contains(matrix.target, 'x86')}}
45+
uses: kohlerdominik/docker-run-action@v1
46+
with:
47+
image: ${{ matrix.docker_image }}
48+
volumes: ${{ github.workspace }}:/workspace
49+
workdir: /workspace
50+
run: |
51+
git clone --recurse-submodules --depth 1 -b v0.10.2 https://github.com/libjxl/libjxl.git
52+
cd libjxl
53+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \
54+
-DJPEGXL_ENABLE_TOOLS=OFF -DJPEGXL_ENABLE_DOXYGEN=OFF -DJPEGXL_ENABLE_MANPAGES=OFF \
55+
-DJPEGXL_ENABLE_BENCHMARKS=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF -DJPEGXL_ENABLE_JNI=OFF \
56+
-DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_OPENEXR=OFF
57+
cmake --build build
58+
cmake --install build
4259
4360
- name: Build wheels
4461
uses: PyO3/maturin-action@v1
4562
with:
4663
target: ${{ matrix.target }}
4764
container: ${{ matrix.docker_image }}
48-
args: --release --out dist --find-interpreter --features vendored
65+
args: --release --out dist --find-interpreter
66+
manylinux: auto
67+
docker-options: |
68+
-e RUST_BACKTRACE=1
69+
-e DEP_JXL_LIB=${{ github.workspace }}/libjxl/build/lib
70+
-e DEP_BROTLI_LIB=${{ github.workspace }}/libjxl/build/third_party/brotli
71+
-e DEP_HWY_LIB=${{ github.workspace }}/libjxl/build/third_party/highway
72+
73+
- name: Build wheels
74+
uses: PyO3/maturin-action@v1
75+
with:
76+
target: ${{ matrix.target }}
77+
container: ${{ matrix.docker_image }}
78+
args: --release --out dist --find-interpreter --features dynamic
4979
manylinux: auto
5080

5181
- name: Upload wheels

0 commit comments

Comments
 (0)