Skip to content

Commit d823fd9

Browse files
committed
.github/workflows/push.yml: add job to build out-of-tree extensions
This aims to detect API breakages early by compiling a selection of out-of-tree extensions in the CI.
1 parent 3ed5264 commit d823fd9

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/push.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,55 @@ jobs:
140140
-d opcache.jit_buffer_size=16M
141141
- name: Verify generated files are up to date
142142
uses: ./.github/actions/verify-generated-files
143+
PECL:
144+
runs-on: ubuntu-20.04
145+
steps:
146+
- name: git checkout PHP
147+
uses: actions/checkout@v3
148+
with:
149+
path: php
150+
- name: git checkout apcu
151+
uses: actions/checkout@v3
152+
with:
153+
repository: krakjoe/apcu
154+
path: apcu
155+
- name: git checkout xdebug
156+
uses: actions/checkout@v3
157+
with:
158+
repository: xdebug/xdebug
159+
path: xdebug
160+
- name: apt
161+
run: |
162+
sudo apt-get update
163+
sudo apt-get install -y --no-install-recommends \
164+
ccache \
165+
bison \
166+
re2c
167+
- name: ccache
168+
uses: hendrikmuhs/[email protected]
169+
with:
170+
key: "${{github.job}}-${{hashFiles('main/php_version.h')}}"
171+
- name: build PHP
172+
run: |
173+
cd php
174+
./buildconf --force
175+
./configure \
176+
--enable-option-checking=fatal \
177+
--prefix=/opt/php \
178+
--enable-cli \
179+
--disable-all \
180+
--enable-werror
181+
make -j$(/usr/bin/nproc)
182+
sudo make install
183+
- name: build APCu
184+
run: |
185+
cd apcu
186+
/opt/php/bin/phpize
187+
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
188+
make -j$(/usr/bin/nproc)
189+
- name: build xdebug
190+
run: |
191+
cd xdebug
192+
/opt/php/bin/phpize
193+
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
194+
make -j$(/usr/bin/nproc)

0 commit comments

Comments
 (0)