381bef1b8de36cf7af74d568ee21ea70b405eea9
[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_debug: "yes"
43 enable_zts: "yes"
44 runs-on: ubuntu-20.04
45 steps:
46 - uses: actions/checkout@v2
47 with:
48 submodules: recursive
49 - name: Install
50 run: |
51 sudo apt-get install -y \
52 php-cli \
53 php-pear \
54 re2c
55 - name: Prepare
56 run: |
57 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
58 - name: Build
59 run: |
60 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
61 - name: Test
62 run: |
63 make -f scripts/ci/Makefile test
64
65 cur-1:
66 name: "cur-1 (8.1)"
67 env:
68 PHP: "8.1"
69 enable_debug: "no"
70 enable_zts: "yes"
71 runs-on: ubuntu-20.04
72 steps:
73 - uses: actions/checkout@v2
74 with:
75 submodules: recursive
76 - name: Install
77 run: |
78 sudo apt-get install -y \
79 php-cli \
80 php-pear \
81 re2c
82 - name: Prepare
83 run: |
84 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
85 - name: Build
86 run: |
87 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
88 - name: Test
89 run: |
90 make -f scripts/ci/Makefile test
91
92 cur-2:
93 name: "cur-2 (8.1)"
94 env:
95 PHP: "8.1"
96 enable_debug: "yes"
97 enable_zts: "no"
98 runs-on: ubuntu-20.04
99 steps:
100 - uses: actions/checkout@v2
101 with:
102 submodules: recursive
103 - name: Install
104 run: |
105 sudo apt-get install -y \
106 php-cli \
107 php-pear \
108 re2c
109 - name: Prepare
110 run: |
111 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
112 - name: Build
113 run: |
114 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
115 - name: Test
116 run: |
117 make -f scripts/ci/Makefile test
118
119 cur-3:
120 name: "cur-3 (8.1)"
121 env:
122 PHP: "8.1"
123 enable_debug: "no"
124 enable_zts: "no"
125 runs-on: ubuntu-20.04
126 steps:
127 - uses: actions/checkout@v2
128 with:
129 submodules: recursive
130 - name: Install
131 run: |
132 sudo apt-get install -y \
133 php-cli \
134 php-pear \
135 re2c
136 - name: Prepare
137 run: |
138 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
139 - name: Build
140 run: |
141 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
142 - name: Test
143 run: |
144 make -f scripts/ci/Makefile test
145
146 cur-cov-0:
147 name: "cur-cov-0 (8.1)"
148 env:
149 CFLAGS: "-O0 -g --coverage"
150 CXXFLAGS: "-O0 -g --coverage"
151 PHP: "8.1"
152 runs-on: ubuntu-20.04
153 steps:
154 - uses: actions/checkout@v2
155 with:
156 submodules: recursive
157 - name: Install
158 run: |
159 sudo apt-get install -y \
160 php-cli \
161 php-pear \
162 re2c
163 - name: Prepare
164 run: |
165 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
166 - name: Build
167 run: |
168 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
169 - name: Test
170 run: |
171 make -f scripts/ci/Makefile test
172 - name: Coverage
173 if: success()
174 run: |
175 find . -name '*.gc*'
176 curl -Os https://uploader.codecov.io/latest/linux/codecov
177 chmod +x codecov
178 ./codecov
179