Skip to content

Commit 83265fc

Browse files
ci: Skip SPM dependent jobs for release (#6702)
Skip a few more jobs that fail because of SPM resolution for the release build, which aren't absolutely required for the release.
1 parent 73200b7 commit 83265fc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
ios-swift-release:
4949
name: Release Build of iOS Swift
5050
# Run the job only for PRs with related changes or non-PR events.
51-
if: github.event_name != 'pull_request' || needs.files-changed.outputs.run_build_for_prs == 'true'
51+
# Don't run this on release branches, cause the SPM Package.swift points to the unreleased versions.
52+
if: startsWith(github.ref, 'refs/heads/release/') == false && (github.event_name != 'pull_request' || needs.files-changed.outputs.run_build_for_prs == 'true')
5253
needs: files-changed
5354
runs-on: macos-15
5455
steps:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ jobs:
105105
distribution-tests:
106106
name: Distribution Tests
107107
runs-on: macos-15
108+
# Don't run this on release branches, cause the SPM Package.swift points to the unreleased versions.
109+
# Also, skip when PR changes don't require running tests to save CI time.
110+
if: startsWith(github.ref, 'refs/heads/release/') == false && (github.event_name != 'pull_request' || needs.files-changed.outputs.run_unit_tests_for_prs == 'true')
108111
needs: files-changed
109112
steps:
110113
- uses: actions/checkout@v5

.github/workflows/testflight.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
branches:
55
- main
66
- v8.x
7-
- release/**
87

98
pull_request:
109
workflow_dispatch:

0 commit comments

Comments
 (0)