@@ -26,16 +26,36 @@ jobs:
26
26
uses : bytecodealliance/actions/wasm-tools/setup@v1
27
27
with :
28
28
version : " 1.202.0"
29
- - run : cargo build --examples --target wasm32-wasi
30
29
- run : curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v19.0.0/wasi_snapshot_preview1.command.wasm
30
+
31
+ - run : cargo build --examples --target wasm32-wasi
32
+
31
33
- run : wasm-tools component new ./target/wasm32-wasi/debug/examples/hello-world.wasm --adapt ./wasi_snapshot_preview1.command.wasm -o component.wasm
32
34
- run : wasmtime run component.wasm
35
+
36
+ - run : wasm-tools component new ./target/wasm32-wasi/debug/examples/hello-world-no_std.wasm --adapt ./wasi_snapshot_preview1.command.wasm -o component.wasm
37
+ - run : wasmtime run component.wasm
38
+
39
+ - run : wasm-tools component new ./target/wasm32-wasi/debug/examples/rand.wasm --adapt ./wasi_snapshot_preview1.command.wasm -o component.wasm
40
+ - run : wasmtime run component.wasm
41
+
42
+ - run : wasm-tools component new ./target/wasm32-wasi/debug/examples/rand-no_std.wasm --adapt ./wasi_snapshot_preview1.command.wasm -o component.wasm
43
+ - run : wasmtime run component.wasm
44
+
33
45
- run : cargo build --examples --target wasm32-unknown-unknown
46
+
34
47
- run : wasm-tools component new ./target/wasm32-unknown-unknown/debug/examples/cli_command.wasm -o component.wasm
35
48
- run : wasmtime run component.wasm
49
+
50
+ - run : wasm-tools component new ./target/wasm32-unknown-unknown/debug/examples/cli_command_no_std.wasm -o component.wasm
51
+ - run : wasmtime run component.wasm
52
+
36
53
- run : wasm-tools component new ./target/wasm32-unknown-unknown/debug/examples/http_proxy.wasm -o component.wasm
37
54
- run : wasm-tools component targets wit component.wasm -w wasi:http/proxy
38
55
56
+ - run : wasm-tools component new ./target/wasm32-unknown-unknown/debug/examples/http_proxy_no_std.wasm -o component.wasm
57
+ - run : wasm-tools component targets wit component.wasm -w wasi:http/proxy
58
+
39
59
40
60
rustfmt :
41
61
name : Rustfmt
0 commit comments