Skip to content

Commit 27b4d6f

Browse files
committed
setup rust/tinygo for building spin apps
Signed-off-by: Rajat Jindal <[email protected]>
1 parent fd08081 commit 27b4d6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/setup-linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@
22
sudo apt -y update
33
sudo apt-get install -y protobuf-compiler libseccomp-dev
44

5+
echo "setting up rust"
6+
sudo rustup toolchain install 1.74 --component clippy --component rustfmt --no-self-update
7+
sudo rustup default 1.74
8+
sudo rustup target add wasm32-wasi && rustup target add wasm32-unknown-unknown
9+
10+
## setup tinygo. required for building test spin app
11+
echo "setting up tinygo"
12+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.30.0/tinygo_0.30.0_amd64.deb
13+
sudo dpkg -i tinygo_0.30.0_amd64.deb

0 commit comments

Comments
 (0)