File tree 2 files changed +2
-27
lines changed
swift-ci/sdks/static-linux
2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ case $(arch) in
22
22
arm64|aarch64)
23
23
OS_ARCH_SUFFIX=-aarch64
24
24
;;
25
- i386| amd64|x86_64)
25
+ amd64|x86_64)
26
26
OS_ARCH_SUFFIX=
27
27
;;
28
28
* )
@@ -32,7 +32,7 @@ case $(arch) in
32
32
esac
33
33
34
34
# 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 .
36
36
37
37
# Check-out the sources
38
38
scripts/fetch-source.sh --clone-with-ssh --source-dir source
@@ -43,6 +43,5 @@ mkdir -p products
43
43
$DOCKER run -it --rm \
44
44
-v ./source:/source \
45
45
-v ./products:/products \
46
- -m 10G \
47
46
static-swift-linux \
48
47
/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}"
926
926
mkdir -p " ${products_dir} "
927
927
tar cvzf " ${products_dir} /${bundle} .tar.gz" " ${bundle} "
928
928
quiet_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