mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 10:38:51 +02:00
Add support for JXL
This commit is contained in:
84
.github/workflows/test.yml
vendored
84
.github/workflows/test.yml
vendored
@@ -10,23 +10,9 @@ jobs:
|
||||
with:
|
||||
cmake-version: '3.27.x'
|
||||
|
||||
- name: Wget libaom
|
||||
uses: wei/wget@v1
|
||||
with:
|
||||
args: https://storage.googleapis.com/aom-releases/libaom-3.7.0.tar.gz
|
||||
- name: Unpack libaom
|
||||
- name: Update apt-get
|
||||
run: |
|
||||
tar -xpf libaom-3.7.0.tar.gz && mkdir build
|
||||
- name: Configure libaom
|
||||
working-directory: build
|
||||
run: |
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_DOCS=OFF \
|
||||
-DENABLE_EXAMPLES=OFF -DENABLE_NASM=OFF -DENABLE_TESTS=OFF -DENABLE_TOOLS=OFF -DENABLE_WERROR=OFF \
|
||||
-DAOM_TARGET_CPU=generic ../libaom-3.7.0
|
||||
- name: Install libaom
|
||||
working-directory: build
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
sudo apt-get update
|
||||
|
||||
- name: Wget libheif
|
||||
uses: wei/wget@v1
|
||||
@@ -35,16 +21,72 @@ jobs:
|
||||
- name: Unpack libheif
|
||||
run: |
|
||||
tar -xpf libheif-1.15.2.tar.gz
|
||||
- name: Install libheif dependencies
|
||||
run: |
|
||||
sudo apt-get install libaom-dev -y
|
||||
- name: Configure libheif
|
||||
working-directory: libheif-1.15.2
|
||||
run: |
|
||||
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static --disable-libde265 \
|
||||
--disable-dav1d --disable-go --enable-aom --disable-gdk-pixbuf --disable-rav1e --disable-tests --disable-x265
|
||||
--disable-dav1d --disable-go --enable-aom --disable-gdk-pixbuf --disable-rav1e --disable-tests --disable-x265 --disable-examples
|
||||
- name: Install libheif
|
||||
working-directory: libheif-1.15.2
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
|
||||
- name: Wget lcms2
|
||||
uses: wei/wget@v1
|
||||
with:
|
||||
args: https://github.com/mm2/Little-CMS/releases/download/lcms2.15/lcms2-2.15.tar.gz
|
||||
- name: Unpack lcms2
|
||||
run: |
|
||||
tar -xpf lcms2-2.15.tar.gz
|
||||
- name: Configure lcms2
|
||||
working-directory: lcms2-2.15
|
||||
run: |
|
||||
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
|
||||
- name: Install lcms2
|
||||
working-directory: lcms2-2.15
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
|
||||
- name: Wget highway
|
||||
uses: wei/wget@v1
|
||||
with:
|
||||
args: -O highway-1.0.5.tar.gz https://github.com/google/highway/archive/refs/tags/1.0.5.tar.gz
|
||||
- name: Unpack highway
|
||||
run: |
|
||||
tar -xpf highway-1.0.5.tar.gz && mkdir -p highway-1.0.5/build
|
||||
- name: Configure highway
|
||||
working-directory: highway-1.0.5/build
|
||||
run: |
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DHWY_ENABLE_TESTS=OFF -DHWY_ENABLE_EXAMPLES=OFF -DHWY_WARNINGS_ARE_ERRORS=OFF ../
|
||||
- name: Install highway
|
||||
working-directory: highway-1.0.5/build
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
|
||||
- name: Wget libjxl
|
||||
uses: wei/wget@v1
|
||||
with:
|
||||
args: -O libjxl-0.8.2.tar.gz https://github.com/libjxl/libjxl/archive/refs/tags/v0.8.2.tar.gz
|
||||
- name: Unpack libjxl
|
||||
run: |
|
||||
tar -xpf libjxl-0.8.2.tar.gz && mkdir -p libjxl-0.8.2/build
|
||||
- name: Configure libjxl
|
||||
working-directory: libjxl-0.8.2/build
|
||||
run: |
|
||||
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DJPEGXL_ENABLE_BENCHMARK=OFF \
|
||||
-DJPEGXL_ENABLE_COVERAGE=OFF -DJPEGXL_ENABLE_FUZZERS=OFF -DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_WARNINGS_AS_ERRORS=OFF \
|
||||
-DJPEGXL_ENABLE_SKCMS=OFF -DJPEGXL_ENABLE_VIEWERS=OFF -DJPEGXL_ENABLE_PLUGINS=OFF -DJPEGXL_ENABLE_DOXYGEN=OFF \
|
||||
-DJPEGXL_ENABLE_MANPAGES=OFF -DJPEGXL_ENABLE_JNI=OFF -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF -DJPEGXL_ENABLE_TCMALLOC=OFF \
|
||||
-DJPEGXL_ENABLE_EXAMPLES=OFF -DJPEGXL_ENABLE_TOOLS=OFF -DJPEGXL_ENABLE_OPENEXR=OFF -DBUILD_TESTING=OFF \
|
||||
-DJXL_HWY_DISABLED_TARGETS_FORCED=ON -DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_HWY=ON ../
|
||||
- name: Install libjxl
|
||||
working-directory: libjxl-0.8.2/build
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
|
||||
- name: Wget ImageMagick
|
||||
uses: wei/wget@v1
|
||||
with:
|
||||
@@ -59,20 +101,20 @@ jobs:
|
||||
--without-frozenpaths --without-utilities --disable-hdri --disable-opencl --without-modules --without-magick-plus-plus --without-perl \
|
||||
--without-bzlib --without-x --without-zip --with-zlib --without-dps --without-djvu --without-autotrace --without-fftw \
|
||||
--without-fpx --without-fontconfig --without-freetype --without-gslib --without-gvc --without-jbig --without-openjp2 \
|
||||
--without-jxl --without-lcms --without-lqr --without-lzma --without-openexr --without-pango --without-raw \
|
||||
--without-rsvg --without-wmf --without-xml --disable-openmp --with-jpeg --with-heic --with-png --with-tiff --with-webp
|
||||
--without-lcms --without-lqr --without-lzma --without-openexr --without-pango --without-raw --without-rsvg --without-wmf \
|
||||
--without-xml --disable-openmp --with-jpeg --with-heic --with-jxl --with-png --with-tiff --with-webp
|
||||
- name: Install ImageMagick
|
||||
working-directory: ImageMagick-7.1.1-15
|
||||
run: |
|
||||
make -j3 && sudo make install
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.21
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test
|
||||
run: go test
|
||||
|
Reference in New Issue
Block a user