From 6ad3acccd1b961b0efec8450dd24cea9a4b006a1 Mon Sep 17 00:00:00 2001 From: Josh Gratton Date: Wed, 10 Jun 2026 20:50:53 -0400 Subject: [PATCH] ci(release): don't block macOS/Linux builds on the WSL node-pty prebuild The build matrix gated every entry on build_wsl_node_pty succeeding, but only the Windows artifact consumes the Linux node-pty prebuild, so a failed prebuild would skip the macOS and Linux builds too. Gate the build job on preflight and relay only (via !cancelled() instead of !failure()); build_wsl_node_pty stays in needs for ordering and the Windows-only download step fails just that platform when the prebuild is missing. --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59f5ba2ae6..9f130bad5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -267,8 +267,15 @@ jobs: build: name: Build ${{ matrix.label }} + # build_wsl_node_pty stays in `needs` so it runs first and its artifact is + # available to download, but only the Windows matrix entry consumes it. We + # therefore gate the job on preflight + relay (must succeed) WITHOUT requiring + # build_wsl_node_pty, so a failed Linux prebuild doesn't skip the macOS/Linux + # builds. `!cancelled()` (not `!failure()`) lets the job run even when + # build_wsl_node_pty failed; the Windows-only download step below then fails + # that single platform if the prebuild is missing. needs: [preflight, relay_public_config, build_wsl_node_pty] - if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' && needs.build_wsl_node_pty.result == 'success' }} + if: ${{ !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' }} runs-on: ${{ matrix.runner }} timeout-minutes: 30 env: