Skip to content

GHA: allow overriding the repo manifest #908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/build-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Development Snapshot
on:
workflow_dispatch:
inputs:
repo_url:
description: 'Repo Manifest URL'
default: 'https://github.com/compnerd/swift-build'
required: false
type: string

swift_version:
description: 'Swift Version'
default: '0.0.0'
Expand Down Expand Up @@ -48,6 +54,12 @@ on:
default: false
type: boolean

stable_point:
description: 'Use Repo Smart Sync'
type: boolean
default: false
required: false

workflow_call:
inputs:
swift_version:
Expand Down Expand Up @@ -227,7 +239,7 @@ jobs:
branch_name="release/$branch_version_string"
fi

repo init --quiet --groups default --depth 1 -u https://github.com/compnerd/swift-build -b $branch_name
repo init --quiet --groups default --depth 1 -u ${{ inputs.repo_url }} -b $branch_name
repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all)

if [[ "${{ inputs.swift_tag }}" != "" ]] ; then
Expand Down
Loading