File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44 branches :
55 - main
66 - v8.x
7- - release/**
87
98 pull_request :
109 workflow_dispatch :
You can’t perform that action at this time.
0 commit comments