@@ -39,13 +39,43 @@ jobs:
39
39
- uses : actions/setup-python@v4
40
40
with :
41
41
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
42
59
43
60
- name : Build wheels
44
61
uses : PyO3/maturin-action@v1
45
62
with :
46
63
target : ${{ matrix.target }}
47
64
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
49
79
manylinux : auto
50
80
51
81
- name : Upload wheels
0 commit comments