Commit 5faea84 1 parent c527a26 commit 5faea84 Copy full SHA for 5faea84
File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,28 @@ jobs:
18
18
rust : stable
19
19
- os : windows-latest
20
20
rust : stable
21
+ - os : ubuntu-latest
22
+ rust : stable
23
+ target : wasm32-wasip1
21
24
steps :
22
25
- uses : actions/checkout@v4
23
- - name : Install Rust (
24
- run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
26
+ - run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
25
27
shell : bash
28
+
29
+ # Configure cross-builds by adding the rustup target and configuring future
30
+ # cargo invocations.
31
+ - run : |
32
+ rustup target add ${{ matrix.target }}
33
+ echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV
34
+ if: matrix.target != ''
35
+
36
+ # For wasm install wasmtime as a test runner and configure it with Cargo.
37
+ - name : Setup `wasmtime`
38
+ uses : bytecodealliance/actions/wasmtime/setup@v1
39
+ if : matrix.target == 'wasm32-wasip1'
40
+ - run : echo CARGO_TARGET_WASM32_WASIP1_RUNNER=wasmtime
41
+ if : matrix.target == 'wasm32-wasip1'
42
+
26
43
- run : cargo test
27
44
- run : cargo test --features debug
28
45
- run : cargo test --features global
You can’t perform that action at this time.
0 commit comments