From 1798801aa89fd2154b76f9292880e4a688ef5a03 Mon Sep 17 00:00:00 2001 From: "Jesse L. Zamora" Date: Tue, 25 Feb 2025 19:59:11 -0500 Subject: [PATCH] Add ability to invoke a specific build script from build-in-container.sh --- build-in-container.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-in-container.sh b/build-in-container.sh index 6d0569c..ac7c59e 100755 --- a/build-in-container.sh +++ b/build-in-container.sh @@ -6,6 +6,8 @@ set -e source ./swift-builder/swift-builder-common ./swift-builder/build-container.sh +BUILD_SCRIPT=${BUILD_SCRIPT:=./build.sh} + # Build Swift echo "Building Swift ${SWIFT_TAG} using ${DOCKER_TAG}..." docker run \ @@ -18,5 +20,4 @@ docker run \ -e INSTALL_TAR=${INSTALL_TAG} \ -e SKIP_FETCH_SOURCES=${SKIP_FETCH_SOURCES} \ -e SWIFT_TARGET_ARCH=${SWIFT_TARGET_ARCH} \ - ${DOCKER_TAG} \ - ./build.sh + ${DOCKER_TAG} ${BUILD_SCRIPT}