Skip to content

Commit b5613c9

Browse files
committed
Temporarily apply compnerd/swift-build#908
1 parent efca4ff commit b5613c9

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/build-toolchain.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Development Snapshot
33
on:
44
workflow_dispatch:
55
inputs:
6+
repo_url:
7+
description: 'Repo Manifest URL'
8+
default: 'https://github.com/compnerd/swift-build'
9+
required: false
10+
type: string
11+
612
swift_version:
713
description: 'Swift Version'
814
default: '0.0.0'
@@ -48,6 +54,12 @@ on:
4854
default: false
4955
type: boolean
5056

57+
stable_point:
58+
description: 'Use Repo Smart Sync'
59+
type: boolean
60+
default: false
61+
required: false
62+
5163
workflow_call:
5264
inputs:
5365
swift_version:
@@ -120,6 +132,12 @@ on:
120132
default: false
121133
type: boolean
122134

135+
stable_point:
136+
description: 'Use Repo Smart Sync'
137+
type: boolean
138+
default: false
139+
required: false
140+
123141
secrets:
124142
SYMBOL_SERVER_PAT:
125143
required: true
@@ -227,8 +245,12 @@ jobs:
227245
branch_name="release/$branch_version_string"
228246
fi
229247
230-
repo init --quiet --groups default --depth 1 -u https://github.com/compnerd/swift-build -b $branch_name
231-
repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all)
248+
repo init --quiet --groups default --depth 1 -u ${{ inputs.repo_url }} -b $branch_name
249+
if [[ "${{ inputs.stable_pointer }}" == "true" ]]; then
250+
repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all) -s
251+
else
252+
repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all)
253+
fi
232254
233255
if [[ "${{ inputs.swift_tag }}" != "" ]] ; then
234256
tee -a "${GITHUB_OUTPUT}" <<-EOF

0 commit comments

Comments
 (0)