Skip to content

Commit b6d4157

Browse files
committed
vagga.yaml: wasm builder
1 parent 29f088e commit b6d4157

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

vagga.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ commands:
55
container: ubuntu
66
run: [cargo, build]
77

8+
make-wasm: !Command
9+
description: Build wasm library (just to check it's buildable)
10+
container: wasm
11+
run: [cargo, build, --target=wasm32-unknown-unknown]
12+
813
cargo: !Command
914
description: Run arbitrary cargo command
1015
symlink-name: cargo
@@ -41,3 +46,19 @@ containers:
4146
HOME: /work/target
4247
RUST_BACKTRACE: 1
4348

49+
wasm:
50+
environ: &rustenv
51+
PATH: /usr/local/bin:/usr/bin:/bin
52+
HOME: /work/target
53+
RUST_BACKTRACE: 1
54+
setup:
55+
- !Ubuntu xenial
56+
- !UbuntuUniverse
57+
- &pkgs !Install [build-essential, ca-certificates, vim]
58+
- &rust !TarInstall
59+
url: https://static.rust-lang.org/dist/rust-beta-x86_64-unknown-linux-gnu.tar.gz
60+
script: "./install.sh --prefix=/usr --components=rustc,cargo \
61+
--components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo"
62+
- !TarInstall
63+
url: "https://static.rust-lang.org/dist/rust-std-beta-wasm32-unknown-unknown.tar.gz"
64+
script: "./install.sh --prefix=/usr --components=rust-std-wasm32-unknown-unknown"

0 commit comments

Comments
 (0)