Skip to content

Commit

Permalink
Use latestest imagemagick
Browse files Browse the repository at this point in the history
  • Loading branch information
malomalo committed Nov 20, 2023
1 parent e6cc7ca commit aaeefb5
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,54 @@ jobs:
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 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: Install libvips
run: sudo apt-get -y install libvips libvips-dev
- 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: sudo apt-get -y 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
Expand Down

0 comments on commit aaeefb5

Please sign in to comment.