Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 41 lines (40 sloc) 1.63 KB
set -e
# install dependencies
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg \
software-properties-common wget git ninja-build clang python uuid-dev \
libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev \
swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev \
libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
# install latest cmake
sudo rm /usr/local/bin/cmake
wget -O - 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb xenial main'
sudo apt-get update
sudo apt-get install cmake
# install the WASI sdk
wget -O wasisdk.deb ""
sudo dpkg -i wasisdk.deb
# download ICU
wget -O icu.tar.xz ""
tar xf icu.tar.xz
# start build
cd swift
utils/build-script --release --wasm \
--llvm-targets-to-build "X86;WebAssembly" \
--llvm-max-parallel-lto-link-jobs 1 --swift-tools-max-parallel-lto-link-jobs 1 \
--wasm-wasi-sdk "/opt/wasi-sdk" \
--wasm-icu-uc "todo" \
--wasm-icu-uc-include "$sourcedir/icu_out/include" \
--wasm-icu-i18n "todo" \
--wasm-icu-i18n-include "todo" \
--wasm-icu-data "todo" \
--build-swift-static-stdlib \
--install-swift \
--install-prefix="/opt/swiftwasm-sdk" \
--install-destdir="$sourcedir/install" \
# copy the result
cp "$sourcedir/swiftwasm.tar.gz" "$BUILD_ARTIFACTSTAGINGDIRECTORY/"
You can’t perform that action at this time.