Support Quality Operator and Add Newer Image formats #32
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: | |
ruby-version: | |
- 3.0.5 | |
backend: | |
- libvips | |
steps: | |
- name: Install Deps | |
run: | | |
sudo apt-get -y install libjpeg-turbo8-dev libgsf-1-dev libexif-dev \ | |
libwebp-dev libopenjp2-7-dev libheif-dev \ | |
meson ninja-build | |
- name: Restore compiled libvips/imagemagick | |
id: cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
/home/runner/vips | |
/home/runner/im | |
key: compiled-backends | |
- name: Compile Libvips | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p /home/runner/vips | |
cd /home/runner/vips | |
wget 'https://github.com/libvips/libvips/releases/download/v8.15.0/vips-8.15.0.tar.xz' | |
tar xf vips-8.15.0.tar.xz | |
cd vips-8.15.0 | |
meson setup build-dir --buildtype=release | |
cd build-dir | |
ninja | |
ninja test | |
- name: Compile Imagemagick | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
sudo apt-get -y install libjpeg-dev libpng-dev libpng16-16 libltdl-dev libheif-dev libraw-dev libtiff-dev libopenjp2-tools libopenjp2-7-dev libjpeg-dev libjpeg-turbo-progs libfreetype6-dev libheif-dev libfreetype6-dev libopenexr-dev libpng-dev | |
mkdir -p /home/runner/im | |
cd /home/runner/im | |
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick-7.1.1-6 | |
pushd ImageMagick-7.1.1-6 | |
./configure --with-modules --enable-file-type --with-quantum-depth=32 --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 | |
- name: Install Imagemagick | |
run: | | |
cd /home/runner/im | |
sudo make install | |
sudo ldconfig /usr/local/lib | |
- name: Install MuPDF & FFMpeg | |
run: sudo apt-get -y install mupdf-tools ffmpeg | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- run: bundle | |
- run: bundle exec rake test:${{ matrix.backend }} |