Skip to content

Commit 4dec645

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Verify generated files are up to date in CI
2 parents 3b4eaf6 + cf70047 commit 4dec645

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

.github/actions/apt-x64/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ runs:
5959
libpng-dev \
6060
libfreetype6-dev
6161
mkdir /opt/oracle
62-
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
63-
unzip instantclient-basiclite-linuxx64.zip
64-
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
65-
unzip instantclient-sdk-linuxx64.zip
62+
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
63+
unzip instantclient-basiclite-linuxx64.zip && rm instantclient-basiclite-linuxx64.zip
64+
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
65+
unzip instantclient-sdk-linuxx64.zip && rm instantclient-sdk-linuxx64.zip
6666
mv instantclient_*_* /opt/oracle/instantclient
6767
# Interferes with libldap2 headers.
6868
rm /opt/oracle/instantclient/sdk/include/ldap.h
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Verify generated files are up to date
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
[[ "$OSTYPE" == "darwin"* ]] && export PATH="/usr/local/opt/bison/bin:$PATH"
9+
scripts/dev/genfiles
10+
Zend/zend_vm_gen.php
11+
build/gen_stub.php -f
12+
git add . -N && git diff --exit-code

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
-d opcache.enable_cli=1
9494
-d opcache.jit_buffer_size=16M
9595
-d opcache.jit=1205
96+
- name: Verify generated files are up to date
97+
uses: ./.github/actions/verify-generated-files
9698
MACOS:
9799
needs: GENERATE_MATRIX
98100
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
@@ -149,3 +151,5 @@ jobs:
149151
-d opcache.protect_memory=1
150152
-d opcache.jit_buffer_size=16M
151153
-d opcache.jit=1205
154+
- name: Verify generated files are up to date
155+
uses: ./.github/actions/verify-generated-files

.github/workflows/push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
-d zend_extension=opcache.so
5858
-d opcache.enable_cli=1
5959
-d opcache.jit_buffer_size=16M
60+
- name: Verify generated files are up to date
61+
uses: ./.github/actions/verify-generated-files
6062
MACOS_DEBUG_NTS:
6163
runs-on: macos-10.15
6264
steps:
@@ -84,3 +86,5 @@ jobs:
8486
-d opcache.enable_cli=1
8587
-d opcache.protect_memory=1
8688
-d opcache.jit_buffer_size=16M
89+
- name: Verify generated files are up to date
90+
uses: ./.github/actions/verify-generated-files

ext/pgsql/tests/80_bug14383.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pg_close($dbh);
2121
require_once(__DIR__.'/../../dba/tests/test.inc');
2222
require_once(__DIR__.'/../../dba/tests/dba_handler.inc');
2323

24+
?>
25+
--CLEAN--
26+
<?php
27+
require_once(__DIR__.'/../../dba/tests/clean.inc');
2428
?>
2529
--EXPECTF--
2630
database handler: %s

0 commit comments

Comments
 (0)