From 7beb83831efbafd30be0bee6f1469a44452e6ffd Mon Sep 17 00:00:00 2001 From: Rick Lam Date: Thu, 22 Oct 2026 05:00:18 +0100 Subject: [PATCH] Publish each PHP version even when another version's test fails The build and manifest jobs needed every test in the matrix to pass, so one failing version stopped every version from publishing. Since 22 Oct 2026 pecl.php.net returns bad REST data for the 5.6, 7.0, 7.1, 7.2, 8.3 and 8.4 builds, which blocks the PHP 7.4 security fix in #47 even though its own test passes. With !cancelled() each version builds and publishes on its own. A version whose build breaks fails only its own build and manifest jobs. Every PR still runs all the tests. Fixes #48 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Uugex1w8qZoTbBRbcFwkcp --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff48981..e9da55c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: build: name: PHP ${{ matrix.version }} (${{ matrix.platform }}) needs: [matrix, test] - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: ${{ !cancelled() && needs.matrix.result == 'success' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -129,7 +129,7 @@ jobs: manifest: name: PHP ${{ matrix.version }} manifest needs: [matrix, build] - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: ${{ !cancelled() && needs.matrix.result == 'success' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} runs-on: ubuntu-latest strategy: fail-fast: false