-
Notifications
You must be signed in to change notification settings - Fork 32
98 lines (88 loc) · 2.41 KB
/
Copy pathlinux.yaml
File metadata and controls
98 lines (88 loc) · 2.41 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Linux
on:
push:
jobs:
ci:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.5'
- '8.4'
- '8.3'
- '8.2'
- '8.1'
- '8.0'
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
ts:
- nts
- zts
library:
- ''
- 'system'
apcu:
- ''
- 'apcu'
if: contains(github.event.head_commit.message, 'ci skip') == false
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
set-safe-directory: true
submodules: ${{ ! matrix.library }}
token: ${{ github.token }}
- name: Setup PHP (${{ matrix.php }} ${{ matrix.ts }})
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: ${{ matrix.php }}
extensions: xml, mbstring${{ matrix.apcu != '' && ', apcu' || '' }}
coverage: none
ini-values: zend.assertions=1
env:
phpts: ${{ matrix.ts }}
- name: Install dependency library
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libzstd-dev
if: ${{ matrix.library }}
- name: Build
run: |
phpize
./configure
make
if: ${{ ! matrix.library }}
- name: Build with library
run: |
phpize
./configure --with-libzstd
make
if: ${{ matrix.library }}
- name: Test Preparation APCu
run: |
cp $(php-config --extension-dir)/apcu.so modules/
sed -i 's/\$(PHP_TEST_SHARED_EXTENSIONS)/-d extension=apcu.so \$(PHP_TEST_SHARED_EXTENSIONS)/' Makefile
if: ${{ matrix.apcu }}
- name: Test
run: |
make test TESTS="--show-diff" | tee test-output.txt
grep 'TEST SUMMARY$' test-output.txt > /dev/null && exit 1 || exit 0
env:
REPORT_EXIT_STATUS: 1
NO_INTERACTION: 1
- name: Failure Test
run: |
for FILE in $(find ./tests -name '*.diff'); do
echo echo $FILE
cat $FILE
echo
done
if: ${{ failure() }}