Skip to content

Commit

Permalink
Add ability to invoke a specific build script from build-in-container.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Feb 26, 2025
1 parent cc17a78 commit 1798801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-in-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}

0 comments on commit 1798801

Please sign in to comment.