Skip to content

Commit 7d70cb6

Browse files
authored
Merge pull request #40 from phansys/ci_stub
[CI] Download just `gen_stub.php` script instead of the whole PHP source
2 parents c5b5708 + 12347be commit 7d70cb6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ jobs:
3131
uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: ${{matrix.version}}
34-
- name: Checkout "php/php-src"
35-
if: "${{ matrix.version >= '8.0' }}"
36-
uses: actions/checkout@v3
37-
with:
38-
repository: php/php-src
39-
ref: php-8.2.0
40-
path: php-src
4134
- name: Verify headers
4235
if: "${{ matrix.version >= '8.0' }}"
4336
run: |
44-
HEADERS_IN_SYNC=$(php php-src/build/gen_stub.php .)
45-
if [[ ! -z $HEADERS_IN_SYNC ]]; then echo 'Headers are not in sync with "ibm_db2.stub.php".' && exit 1; fi;
37+
wget https://github.com/nikic/PHP-Parser/archive/refs/tags/v4.15.1.tar.gz
38+
tar xvzf v4.15.1.tar.gz
39+
rm v4.15.1.tar.gz
40+
wget https://raw.githubusercontent.com/php/php-src/php-8.2.3/build/gen_stub.php
41+
HEADERS_IN_SYNC=$(php gen_stub.php .)
42+
if [[ ! -z $HEADERS_IN_SYNC ]]; then
43+
echo 'Headers are not in sync with "ibm_db2.stub.php".' && exit 1;
44+
else
45+
echo 'Headers are in sync with "ibm_db2.stub.php".'
46+
fi;
4647
- name: phpize
4748
run: phpize
4849
- name: configure

0 commit comments

Comments
 (0)