@@ -10,14 +10,21 @@ jobs:
10
10
matrix :
11
11
php : [ '8.1', '8.2', '8.3', '8.4' ]
12
12
imagemagick : [ '6.9.12-55', '7.1.1-32' ]
13
- stability : [ prefer-stable ]
13
+ imagick : [ '3.7.0' ]
14
14
15
- name : PHP ${{ matrix.php }} - ${{ matrix.stability }} - ImageMagick ${{ matrix.imagemagick }}
15
+ name : PHP ${{ matrix.php }} - ImageMagick ${{ matrix.imagemagick }}
16
16
17
17
steps :
18
18
- name : Checkout project
19
19
uses : actions/checkout@v4
20
20
21
+ - name : Setup PHP
22
+ uses : shivammathur/setup-php@v2
23
+ with :
24
+ php-version : ${{ matrix.php }}
25
+ extensions : mbstring, gd
26
+ coverage : none
27
+
21
28
- name : Prepare environment for Imagemagick
22
29
run : |
23
30
sudo apt-get -y remove imagemagick imagemagick-6-common libmagic-dev
@@ -52,12 +59,20 @@ jobs:
52
59
sudo make install
53
60
)
54
61
55
- - name : Setup PHP
56
- uses : shivammathur/setup-php@v2
57
- with :
58
- php-version : ${{ matrix.php }}
59
- extensions : mbstring, gd, imagick
60
- coverage : none
62
+ - name : Install Imagick PHP extension
63
+ run : |
64
+ curl -o /tmp/imagick.tgz -sL http://pecl.php.net/get/imagick-${{ matrix.imagick }}.tgz
65
+ (
66
+ cd /tmp || exit 1
67
+ tar -xzf imagick.tgz
68
+ cd imagick-${{ matrix.imagick }}
69
+ phpize
70
+ sudo ./configure --with-imagick=/home/runner/im/imagemagick-${{ matrix.imagemagick }}
71
+ sudo make -j$(nproc)
72
+ sudo make install
73
+ )
74
+ sudo bash -c 'echo "extension=imagick.so" >> /etc/php/${{ matrix.php }}/cli/php.ini'
75
+ php --ri imagick;
61
76
62
77
- name : Get composer cache directory
63
78
id : composer-cache
@@ -67,11 +82,11 @@ jobs:
67
82
uses : actions/cache@v4
68
83
with :
69
84
path : ${{ steps.composer-cache.outputs.dir }}
70
- key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.stability }}- ${{ hashFiles('**/composer.json') }}
71
- restore-keys : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.stability }}-
85
+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
86
+ restore-keys : ${{ runner.os }}-php-${{ matrix.php }}-
72
87
73
88
- name : Install dependencies
74
- run : composer update --${{ matrix.stability }} --prefer-dist --no-interaction
89
+ run : composer update --prefer-stable --prefer-dist --no-interaction
75
90
76
91
- name : GD Version
77
92
run : php -r 'var_dump(gd_info());'
0 commit comments