From 875f123403b3c5f6c3585d3d42f313d9b121e07e Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 26 Aug 2026 18:11:49 +0800 Subject: [PATCH] ci: enable zip for Windows release packaging --- .github/workflows/windows-build.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 { '' }