-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (65 loc) · 2.44 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 }}