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 7f65c94
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,59 @@ 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 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: |
sudo apt-get -y install python3 python3-pip python3-setuptools python3-wheel ninja-build
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
ls
cd libvips-8.15.0
meson setup build-dir
cd build-dir
ninja
ninja test
- name: Install Imagemagick
run: |
cd /home/runner/vips
sudo ninja install
- 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 7f65c94

Please sign in to comment.