Skip to content

Commit 494d100

Browse files
committed
ci: restore production Windows release matrix --skip-tests
1 parent f341a1e commit 494d100

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
php: ["8.5"]
28-
thread_safety: [zts]
27+
php: ["8.4", "8.5"]
28+
thread_safety: [nts, zts]
2929

3030
steps:
3131
- name: Checkout TypePHP
@@ -404,7 +404,7 @@ jobs:
404404
}
405405
406406
- name: Package tested Windows compiler
407-
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/ci/windows-release-zip-debug') && matrix.php == '8.5' && matrix.thread_safety == 'zts'
407+
if: startsWith(github.ref, 'refs/tags/') && matrix.php == '8.5' && matrix.thread_safety == 'zts'
408408
shell: pwsh
409409
run: |
410410
$ErrorActionPreference = 'Stop'
@@ -413,11 +413,7 @@ jobs:
413413
if ($LASTEXITCODE -ne 0) {
414414
throw "Production Composer install failed with exit code $LASTEXITCODE"
415415
}
416-
$env:TYPEPHP_PACKAGE_VERSION = if ($env:GITHUB_REF_TYPE -eq 'tag') {
417-
$env:GITHUB_REF_NAME
418-
} else {
419-
'debug'
420-
}
416+
$env:TYPEPHP_PACKAGE_VERSION = $env:GITHUB_REF_NAME
421417
php package.php
422418
if ($LASTEXITCODE -ne 0) {
423419
throw "Windows packaging failed with exit code $LASTEXITCODE"
@@ -429,7 +425,7 @@ jobs:
429425
}
430426
431427
- name: Upload Windows release package
432-
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/ci/windows-release-zip-debug') && matrix.php == '8.5' && matrix.thread_safety == 'zts'
428+
if: startsWith(github.ref, 'refs/tags/') && matrix.php == '8.5' && matrix.thread_safety == 'zts'
433429
uses: actions/upload-artifact@v4
434430
with:
435431
name: release-windows-php-${{ matrix.php }}-${{ matrix.thread_safety }}

0 commit comments

Comments
 (0)