fix #6: compatibility with 8.2
[awesomized/ext-ion] / .github / workflows / ci.yml
1 # generated file; do not edit!
2
3 name: ci
4 on:
5 workflow_dispatch:
6 release:
7 types: [published]
8 pull_request:
9 paths-ignore:
10 - .dockerignore
11 - .editorconfig
12 - .gitignore
13 - AUTHORS
14 - CONTRIBUTING.md
15 - CREDITS
16 - Dockerfile
17 - 'docs/**'
18 - EXPERIMENTAL
19 - gen_stub.php*.diff
20 - LICENSE
21 - README.md
22 push:
23 paths-ignore:
24 - .dockerignore
25 - .editorconfig
26 - .gitignore
27 - AUTHORS
28 - CONTRIBUTING.md
29 - CREDITS
30 - Dockerfile
31 - 'docs/**'
32 - EXPERIMENTAL
33 - gen_stub.php*.diff
34 - LICENSE
35 - README.md
36
37 jobs:
38 cur-0:
39 name: "cur-0 (8.1)"
40 env:
41 PHP: "8.1"
42 enable_intl: "yes"
43 enable_debug: "yes"
44 enable_zts: "yes"
45 runs-on: ubuntu-20.04
46 steps:
47 - uses: actions/checkout@v2
48 with:
49 submodules: recursive
50 - name: Install
51 run: |
52 sudo apt-get install -y \
53 php-cli \
54 php-pear \
55 re2c
56 - name: Prepare
57 run: |
58 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
59 - name: Build
60 run: |
61 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
62 - name: Test
63 run: |
64 make -f scripts/ci/Makefile test
65
66 cur-1:
67 name: "cur-1 (8.1)"
68 env:
69 PHP: "8.1"
70 enable_intl: "yes"
71 enable_debug: "no"
72 enable_zts: "yes"
73 runs-on: ubuntu-20.04
74 steps:
75 - uses: actions/checkout@v2
76 with:
77 submodules: recursive
78 - name: Install
79 run: |
80 sudo apt-get install -y \
81 php-cli \
82 php-pear \
83 re2c
84 - name: Prepare
85 run: |
86 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
87 - name: Build
88 run: |
89 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
90 - name: Test
91 run: |
92 make -f scripts/ci/Makefile test
93
94 cur-2:
95 name: "cur-2 (8.1)"
96 env:
97 PHP: "8.1"
98 enable_intl: "yes"
99 enable_debug: "yes"
100 enable_zts: "no"
101 runs-on: ubuntu-20.04
102 steps:
103 - uses: actions/checkout@v2
104 with:
105 submodules: recursive
106 - name: Install
107 run: |
108 sudo apt-get install -y \
109 php-cli \
110 php-pear \
111 re2c
112 - name: Prepare
113 run: |
114 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
115 - name: Build
116 run: |
117 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
118 - name: Test
119 run: |
120 make -f scripts/ci/Makefile test
121
122 cur-3:
123 name: "cur-3 (8.1)"
124 env:
125 PHP: "8.1"
126 enable_intl: "yes"
127 enable_debug: "no"
128 enable_zts: "no"
129 runs-on: ubuntu-20.04
130 steps:
131 - uses: actions/checkout@v2
132 with:
133 submodules: recursive
134 - name: Install
135 run: |
136 sudo apt-get install -y \
137 php-cli \
138 php-pear \
139 re2c
140 - name: Prepare
141 run: |
142 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
143 - name: Build
144 run: |
145 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
146 - name: Test
147 run: |
148 make -f scripts/ci/Makefile test
149
150 cur-cov-0:
151 name: "cur-cov-0 (8.1)"
152 env:
153 CFLAGS: "-O0 -g --coverage"
154 CXXFLAGS: "-O0 -g --coverage"
155 PHP: "8.1"
156 enable_intl: "yes"
157 runs-on: ubuntu-20.04
158 steps:
159 - uses: actions/checkout@v2
160 with:
161 submodules: recursive
162 - name: Install
163 run: |
164 sudo apt-get install -y \
165 php-cli \
166 php-pear \
167 re2c
168 - name: Prepare
169 run: |
170 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
171 - name: Build
172 run: |
173 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
174 - name: Test
175 run: |
176 make -f scripts/ci/Makefile test
177 - name: Coverage
178 if: success()
179 run: |
180 find . -name '*.gc*'
181 cd .libs
182 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
183