Skip to content

Commit 40f6299

Browse files
committed
Use DLOAD util via CPX because it fails in lower deps with PHP 8.4
1 parent d77ad58 commit 40f6299

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/run-test-suite.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
- os: windows-latest
5656
extensions-suffix: ', protobuf'
5757
php: 8.1
58+
dependencies: highest
5859
steps:
5960
- name: Set Git To Use LF
6061
run: |
@@ -77,6 +78,10 @@ jobs:
7778
- name: Validate composer.json and composer.lock
7879
run: composer validate --strict
7980

81+
- name: Download CPX (PHP 8.4)
82+
if: inputs.download-binaries == true && matrix.php == '8.4'
83+
run: composer global require cpx/cpx
84+
8085
- name: Get Composer Cache Directory
8186
id: composer-cache
8287
run: |
@@ -94,7 +99,7 @@ jobs:
9499
if: matrix.dependencies == 'lowest' && matrix.php != '8.4'
95100
run: composer update --no-interaction --no-progress --prefer-lowest
96101

97-
- name: Install lowest dependencies from composer.json
102+
- name: Install lowest dependencies from composer.json ignoring ext-php constraint (PHP 8.4)
98103
if: matrix.dependencies == 'lowest' && matrix.php == '8.4'
99104
run: composer update --no-interaction --no-progress --prefer-lowest --ignore-platform-req php
100105

@@ -110,13 +115,18 @@ jobs:
110115
if: matrix.dependencies == 'highest' && matrix.php != '8.4'
111116
run: composer update --no-interaction --no-progress
112117

113-
- name: Install highest dependencies from composer.json
118+
- name: Install highest dependencies from composer.json ignoring ext-php constraint (PHP 8.4)
114119
if: matrix.dependencies == 'highest' && matrix.php == '8.4'
115120
run: composer update --no-interaction --no-progress --ignore-platform-req php
116121

122+
117123
- name: Download binaries
118-
if: inputs.download-binaries == true
124+
if: inputs.download-binaries == true && matrix.php != '8.4'
119125
run: composer get:binaries
120126

127+
- name: Download binaries (PHP 8.4)
128+
if: inputs.download-binaries == true && matrix.php == '8.4'
129+
run: cpx internal/dload get --no-interaction
130+
121131
- name: Run tests
122132
run: ${{ inputs.test-command }}

0 commit comments

Comments
 (0)