Support Quality Operator and Add Newer Image formats #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
sunstone: | |
name: BobRoss Test | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
vips-version: | |
- 8.15.0 | |
im-version: | |
- 7.1.1-21 | |
ruby-version: | |
- 3.0.5 | |
backend: | |
- libvips | |
steps: | |
- name: Install Deps | |
run: | | |
sudo apt-get -y install \ | |
libtiff-dev \ | |
libpng-dev libpng16-16 \ | |
libjpeg-dev libjpeg-turbo8-dev libjpeg-turbo-progs \ | |
libwebp-dev \ | |
libopenexr-dev \ | |
libopenjp2-7-dev libopenjp2-tools \ | |
libheif-dev \ | |
libexif-dev \ | |
libfreetype6-dev \ | |
libgsf-1-dev libltdl-dev libraw-dev \ | |
meson ninja-build libgirepository1.0-dev | |
- name: libvips Build Cache | |
id: vips-cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: /home/runner/vips | |
key: compile-vips-${{ matrix.vips-version }} | |
- name: Compile Libvips | |
if: steps.vips-cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p /home/runner/vips | |
cd /home/runner/vips | |
wget --content-disposition --no-verbose 'https://github.com/libvips/libvips/releases/download/v${{ matrix.vips-version }}/vips-${{ matrix.vips-version }}.tar.xz' | |
tar xf vips-${{ matrix.vips-version }}.tar.xz | |
cd vips-${{ matrix.vips-version }} | |
meson setup build-dir --buildtype=release | |
cd build-dir | |
meson compile | |
meson test | |
- name: Cache libvips Build | |
if: steps.vips-cache.outputs.cache-hit != 'true' | |
uses: actions/cache/save@v3 | |
with: | |
path: /home/runner/vips | |
key: compile-vips-${{ matrix.vips-version }} | |
- name: Install Libvips | |
run: | | |
cd /home/runner/vips/vips-${{ matrix.vips-version }}/build-dir | |
sudo meson install | |
- name: ImageMagick Build Cache | |
id: im-cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: /home/runner/im | |
key: compile-im-${{ matrix.im-version }} | |
- name: Compile Imagemagick | |
if: steps.im-cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p /home/runner/im | |
cd /home/runner/im | |
wget --content-disposition --no-verbose 'https://github.com/ImageMagick/ImageMagick/archive/refs/tags/${{ matrix.im-version }}.tar.gz' | |
tar xf ImageMagick-${{ matrix.im-version }}.tar.gz | |
cd ImageMagick-${{ matrix.im-version }} | |
./configure --with-modules --enable-file-type --with-quantum-depth=16 --with-jpeg=yes --with-png=yes --with-gif=yes --with-webp=yes --with-heic=yes --with-raw=yes --with-tiff=yes --with-openjp2 --with-freetype=yes --with-openexr=yes --with-gslib=yes --with-perl=yes --with-jxl=yes | |
make | |
sudo make install | |
sudo ldconfig /usr/local/lib | |
- name: Cache ImageMagick Build | |
if: steps.im-cache.outputs.cache-hit != 'true' | |
uses: actions/cache/save@v3 | |
with: | |
path: /home/runner/im | |
key: compile-im-${{ matrix.im-version }} | |
- name: Install Imagemagick | |
if: steps.im-cache.outputs.cache-hit == 'true' | |
run: | | |
cd /home/runner/im/ImageMagick-${{ matrix.im-version }} | |
sudo make install | |
sudo ldconfig /usr/local/lib | |
- name: Install FFMpeg | |
run: | | |
sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg6 | |
sudo apt install ffmpeg | |
- name: Install MuPDF | |
run: sudo apt-get -y install mupdf-tools | |
- name: Version Info | |
run: | | |
vips --version | |
identify --version | |
ffmpeg -version | |
mutool -v | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- env: | |
VIPS_WARNING: 1 | |
run: | | |
bundle exec rake test:${{ matrix.backend }} |