Skip to content

Commit

Permalink
rust.yml add job_test_wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Nov 5, 2023
1 parent 7d3305c commit aec8ceb
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ jobs:
# libserde_derive, the error message reads:
# version `GLIBC_2.25' not found (required by /target/debug/deps/libserde_derive-917db958580e9b6d.so)
#
# XXX: wasm fails to compile due to
# XXX: wasm fails to compile due to missing tools
#
# Tier 1
# - aarch64-unknown-linux-gnu
# - i686-pc-windows-gnu
Expand Down Expand Up @@ -259,6 +260,20 @@ jobs:
cross --version
cross check --lib --bins --target ${{ matrix.target }}
job_test_wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ env.MSRV_UPLOAD }}
bins: cargo-wasi
targets: wasm32-wasi
- uses: mwilliamson/setup-wasmtime-action@v2
with:
wasmtime-version: "12.0.1"
- run: cargo wasi test --color=always -- --color=always

job_check:
# this job downloads and builds dependency crates
name: check
Expand Down

0 comments on commit aec8ceb

Please sign in to comment.