mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
CI: run tests for wasm32-wasi
target
This commit is contained in:
parent
417fae8afc
commit
0fce0d85d3
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@ -109,7 +109,6 @@ jobs:
|
|||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
target:
|
target:
|
||||||
[
|
[
|
||||||
wasm32-wasi,
|
|
||||||
wasm32-unknown-emscripten,
|
wasm32-unknown-emscripten,
|
||||||
aarch64-apple-ios,
|
aarch64-apple-ios,
|
||||||
aarch64-linux-android,
|
aarch64-linux-android,
|
||||||
@ -142,6 +141,27 @@ jobs:
|
|||||||
# with the host system.
|
# with the host system.
|
||||||
- run: TZ="$(date +%z)" NOW="$(date +%s)" wasm-pack test --node -- --features wasmbind
|
- run: TZ="$(date +%z)" NOW="$(date +%s)" wasm-pack test --node -- --features wasmbind
|
||||||
|
|
||||||
|
test_wasi:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
target:
|
||||||
|
- wasm32-wasi
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: wasm32-wasi
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- run: cargo install cargo-wasi
|
||||||
|
- uses: mwilliamson/setup-wasmtime-action@v2
|
||||||
|
with:
|
||||||
|
wasmtime-version: "12.0.1"
|
||||||
|
# We can't use `--all-features` because `rustc-serialize` doesn't support
|
||||||
|
# `wasm32-wasi`.
|
||||||
|
- run: cargo wasi test --features=serde,unstable-locales --color=always -- --color=always
|
||||||
|
|
||||||
cross-targets:
|
cross-targets:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user