From 552d12bd2268709f3fa0cc94f22cfa3b92d9df66 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 26 Feb 2025 17:13:32 -0800 Subject: [PATCH] GHA: allow overriding the repo manifest Enable building with a custom fork of the repo manifest enabling patched forks to be used as the source of a build. --- .github/workflows/build-toolchain.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-toolchain.yml b/.github/workflows/build-toolchain.yml index a16bb0ec6..62831ca98 100644 --- a/.github/workflows/build-toolchain.yml +++ b/.github/workflows/build-toolchain.yml @@ -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' @@ -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: @@ -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