File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed
Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -ex
3+ set -eux
44
55SOURCE_PATH=" $( cd " $( dirname " $0 " ) /../../../" && pwd ) "
66
77cd " $SOURCE_PATH "
88
99WASI_SDK_URL=" https://github.com/swiftwasm/wasi-sdk/releases/download/0.2.2-swiftwasm/dist-$2 .zip"
1010
11- [ ! -e dist-wasi-sdk.zip ] && \
12- wget -O dist-wasi-sdk.zip " $WASI_SDK_URL "
11+ workdir=$( mktemp -d)
12+ pushd $workdir
13+
14+ wget -O dist-wasi-sdk.zip " $WASI_SDK_URL "
1315unzip -u dist-wasi-sdk.zip -d .
14- WASI_SDK_TAR_PATH=$( find . -type f -name " wasi-sdk-*" )
16+
17+ WASI_SDK_TAR_PATH=$( find " $workdir " -type f -name " wasi-sdk-*" )
1518WASI_SDK_FULL_NAME=$( basename " $WASI_SDK_TAR_PATH " -" $1 " .tar.gz)
1619tar xfz " $WASI_SDK_TAR_PATH "
17- rm -rf ./wasi-sdk
18- mv " $WASI_SDK_FULL_NAME " ./wasi-sdk
20+ popd
21+
22+ rm -rf $SOURCE_PATH /wasi-sdk
23+ mv " $workdir /$WASI_SDK_FULL_NAME " $SOURCE_PATH /wasi-sdk
Original file line number Diff line number Diff line change 22
33set -ex
44
5- brew uninstall $( brew list | grep python@2)
6- brew install cmake ninja llvm sccache wasmer
5+ if [[ ! -z " $CI " ]]; then
6+ brew uninstall $( brew list | grep python@2)
7+ brew install cmake ninja llvm sccache wasmer
8+ fi
79
8- SOURCE_PATH=" $( cd " $( dirname $0 ) /../../../../" && pwd ) "
10+ SOURCE_PATH=" $( cd " $( dirname $0 ) /../../../../" && pwd) "
911SWIFT_PATH=$SOURCE_PATH /swift
1012cd $SWIFT_PATH
1113
You can’t perform that action at this time.
0 commit comments