ci: enable zip for Windows release packaging

master
韩天峰 2 days ago
parent ed27572ca1
commit 875f123403
  1. 5
      .github/workflows/windows-build.yml

@ -36,6 +36,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: zip
tools: composer:v2
env:
fail-fast: true
@ -53,6 +54,10 @@ jobs:
if ($threadSafety -ne '${{ matrix.thread_safety }}') {
throw "setup-php installed $threadSafety PHP, expected ${{ matrix.thread_safety }}"
}
$zipAvailable = php -r 'echo class_exists("ZipArchive") ? "yes" : "no";'
if ($zipAvailable -ne 'yes') {
throw 'setup-php did not enable the ZipArchive extension required by package.php'
}
$phpExe = (Get-Command php).Source
$phpHome = Split-Path -Parent $phpExe
$threadSuffix = if ($threadSafety -eq 'nts') { '-nts' } else { '' }

Loading…
Cancel
Save