diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index c0d2d3cb..27cf8cf2 100644 --- a/.github/workflows/windows-build.yml +++ b/.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 { '' }