Support Quality Operator and Add Newer Image formats #25
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 | |
- 3.1.3 | |
backend: | |
- libvips | |
- imagemagick | |
steps: | |
- name: Install Image libs | |
run: sudo apt-get -y install libjpeg-turbo8-dev libgsf-1-dev libexif-dev libwebp-dev libopenjp2-7-dev libheif-dev | |
- name: Install libvips | |
run: sudo apt-get -y install libvips libvips-dev | |
- name: Install Imagemagick | |
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./configure --with-modules --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-jxl=yes --with-freetype=yes --with-webp --with-openexr --with-gslib --with-gif -V | |
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick-7.1.1-6 | |
cd 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-webp=yes --with-openexr=yes --with-gslib=yes --with-gif=yes --with-perl=yes --with-jxl=yes | |
make | |
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 }} |