File tree Expand file tree Collapse file tree 2 files changed +2
-27
lines changed
swift-ci/sdks/static-linux Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ case $(arch) in
2222 arm64|aarch64)
2323 OS_ARCH_SUFFIX=-aarch64
2424 ;;
25- i386| amd64|x86_64)
25+ amd64|x86_64)
2626 OS_ARCH_SUFFIX=
2727 ;;
2828 * )
@@ -32,7 +32,7 @@ case $(arch) in
3232esac
3333
3434# Build the Docker image
35- $DOCKER build $DOCKER_EXTRA_ARGS --build-arg OS_ARCH_SUFFIX=$OS_ARCH_SUFFIX -t static-swift-linux .
35+ $DOCKER build --build-arg OS_ARCH_SUFFIX=$OS_ARCH_SUFFIX -t static-swift-linux .
3636
3737# Check-out the sources
3838scripts/fetch-source.sh --clone-with-ssh --source-dir source
@@ -43,6 +43,5 @@ mkdir -p products
4343$DOCKER run -it --rm \
4444 -v ./source:/source \
4545 -v ./products:/products \
46- -m 10G \
4746 static-swift-linux \
4847 /scripts/build.sh --source-dir /source --products-dir /products
Original file line number Diff line number Diff line change @@ -926,27 +926,3 @@ quiet_pushd "${build_dir}"
926926mkdir -p " ${products_dir} "
927927tar cvzf " ${products_dir} /${bundle} .tar.gz" " ${bundle} "
928928quiet_popd
929-
930- header " Install SDK"
931- swift sdk install " ${products_dir} /${bundle} .tar.gz"
932-
933- header " Build Hello World"
934- quiet_pushd " ${build_dir} "
935- mkdir -p hello-world
936- cd hello-world
937- swift package init --type executable
938- for arch in $archs ; do
939- swift build --swift-sdk ${arch} -swift-linux-musl
940- done
941- quiet_popd
942-
943- header " Run Hello World"
944- quiet_pushd " ${build_dir} /hello-world"
945- native_arch=$( uname -p)
946- native_binary=.build/${native_arch} -swift-linux-musl/debug/hello-world
947- if [[ -x " ${native_binary} " ]]; then
948- " ${native_binary} "
949- else
950- echo " No binary for ${native_arch} "
951- fi
952- quiet_popd
You can’t perform that action at this time.
0 commit comments