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