Skip to content

Commit 188ddc1

Browse files
authored
fix
1 parent ee842d8 commit 188ddc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-php.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ jobs:
126126
127127
- shell: bash
128128
run: |
129-
PHP_VERSION_FULL=$(php -r "echo PHP_VERSION;")
129+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
130+
PHP_VERSION_FULL=$(../static-php-cli/buildroot/bin/php.exe -r "echo PHP_VERSION;")
131+
else
132+
PHP_VERSION_FULL=$(../static-php-cli/buildroot/bin/php -r "echo PHP_VERSION;")
133+
fi
130134
echo "PHP_VERSION_FULL=$PHP_VERSION_FULL" >> $GITHUB_ENV
131135
132136
- name: Zip PHP binary, copy metadata

0 commit comments

Comments
 (0)