add ci workflow
[awesomized/ext-ion] / .github / workflows / ci.yml
1 # generated file; do not edit!
2
3 name: ci
4 on:
5 workflow_dispatch:
6 push:
7 pull_request:
8
9 jobs:
10 cur-0:
11 name: "cur-0 (8.1)"
12 env:
13 PHP: "8.1"
14 enable_debug: "yes"
15 enable_zts: "yes"
16 runs-on: ubuntu-20.04
17 steps:
18 - uses: actions/checkout@v2
19 with:
20 submodules: recursive
21 - name: Install
22 run: |
23 sudo apt-get install -y \
24 php-cli \
25 php-pear \
26 re2c
27 - name: Prepare
28 run: |
29 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
30 - name: Build
31 run: |
32 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
33 - name: Test
34 run: |
35 make -f scripts/ci/Makefile test
36
37 cur-1:
38 name: "cur-1 (8.1)"
39 env:
40 PHP: "8.1"
41 enable_debug: "no"
42 enable_zts: "yes"
43 runs-on: ubuntu-20.04
44 steps:
45 - uses: actions/checkout@v2
46 with:
47 submodules: recursive
48 - name: Install
49 run: |
50 sudo apt-get install -y \
51 php-cli \
52 php-pear \
53 re2c
54 - name: Prepare
55 run: |
56 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
57 - name: Build
58 run: |
59 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
60 - name: Test
61 run: |
62 make -f scripts/ci/Makefile test
63
64 cur-2:
65 name: "cur-2 (8.1)"
66 env:
67 PHP: "8.1"
68 enable_debug: "yes"
69 enable_zts: "no"
70 runs-on: ubuntu-20.04
71 steps:
72 - uses: actions/checkout@v2
73 with:
74 submodules: recursive
75 - name: Install
76 run: |
77 sudo apt-get install -y \
78 php-cli \
79 php-pear \
80 re2c
81 - name: Prepare
82 run: |
83 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
84 - name: Build
85 run: |
86 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
87 - name: Test
88 run: |
89 make -f scripts/ci/Makefile test
90
91 cur-3:
92 name: "cur-3 (8.1)"
93 env:
94 PHP: "8.1"
95 enable_debug: "no"
96 enable_zts: "no"
97 runs-on: ubuntu-20.04
98 steps:
99 - uses: actions/checkout@v2
100 with:
101 submodules: recursive
102 - name: Install
103 run: |
104 sudo apt-get install -y \
105 php-cli \
106 php-pear \
107 re2c
108 - name: Prepare
109 run: |
110 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
111 - name: Build
112 run: |
113 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
114 - name: Test
115 run: |
116 make -f scripts/ci/Makefile test
117
118 cur-cov-0:
119 name: "cur-cov-0 (8.1)"
120 env:
121 CFLAGS: "-O0 -g --coverage"
122 CXXFLAGS: "-O0 -g --coverage"
123 PHP: "8.1"
124 runs-on: ubuntu-20.04
125 steps:
126 - uses: actions/checkout@v2
127 with:
128 submodules: recursive
129 - name: Install
130 run: |
131 sudo apt-get install -y \
132 php-cli \
133 php-pear \
134 re2c
135 - name: Prepare
136 run: |
137 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
138 - name: Build
139 run: |
140 make -f scripts/ci/Makefile ext PECL=ion || true # no package.xml yet
141 - name: Test
142 run: |
143 make -f scripts/ci/Makefile test
144 - name: Coverage
145 if: success()
146 run: |
147 cd src/.libs
148 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
149