-
-
Notifications
You must be signed in to change notification settings - Fork 145
77 lines (65 loc) · 1.88 KB
/
main.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
name: Build and Test on Ubuntu latest
on:
push:
pull_request:
types: [opened, synchronize, reopened]
release:
types: [created]
jobs:
test_basic:
name: basic PHP ${{ matrix.php }} - I ${{ matrix.imagemagick }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ 8.3 ]
imagemagick: [
7.1.0-13,
6.8.7-0,
]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Apt install required packages
run: |
sudo apt-get update
sudo apt-get install -y fonts-urw-base35 || true
sudo apt-get install -y libfreetype6-dev || true
sudo apt-get install -y texlive-fonts-recommended || true
- name: Debug what is wrong with the libraries
run: |
bash ./debug_github_action_failing.sh
test_all:
name: Full PHP ${{ matrix.php }} - I ${{ matrix.imagemagick }}
needs: test_basic
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [8.1, 8.0]
imagemagick: [
7.1.0-13,
6.8.7-0,
]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Apt install required packages
run: |
sudo apt-get update
sudo apt-get install -y fonts-urw-base35 || true
sudo apt-get install -y libfreetype6-dev || true
sudo apt-get install -y texlive-fonts-recommended || true
- name: Debug what is wrong with the libraries
run: |
bash ./debug_github_action_failing.sh