From 55dba26c000d3ef8623610a44e07b5f3203d8fa3 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Mon, 16 Mar 2026 23:19:30 +0700 Subject: [PATCH] ci: allow Swift SDK build to run when Rust tests are skipped The swift-sdk-build job depends on rs-workspace-tests, but when a PR only changes Swift files (no Rust changes), rs-workspace-tests skips entirely. GitHub Actions propagates the skip to all downstream jobs, so the Swift build never runs even though swift-sdk-changed is true. Fix: use always() with explicit failure checks so the Swift build runs when Rust tests skip (Swift-only PRs) or pass, but still blocks when Rust tests fail or change detection fails. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3a5ae4923c6..d679990f4f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -201,7 +201,7 @@ jobs: needs: - changes - rs-workspace-tests - if: ${{ needs.changes.outputs.swift-sdk-changed == 'true' }} + if: ${{ always() && needs.changes.outputs.swift-sdk-changed == 'true' && needs.changes.result != 'failure' && needs.rs-workspace-tests.result != 'failure' }} secrets: inherit uses: ./.github/workflows/swift-sdk-build.yml