Skip to content

Commit

Permalink
Enable wasi CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Sep 7, 2024
1 parent c266024 commit 5bba28e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ jobs:
if: steps.rust-cache.outputs.cache-hit != 'true'
run: cargo install --force --version 1.8.0 just --locked

- name: Setup wasmtime
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
version: "24.0.0"

- name: Compile
run: cargo build --all-targets --all-features

Expand Down Expand Up @@ -98,12 +103,9 @@ jobs:
pip3 install maturin
just test_py
# Re-enable when this works on stable
# - name: Run WASI tests
# if: startsWith(matrix.os, 'macos')
# run: |
# rustup toolchain install nightly
# rustup target add wasm32-wasi
# brew install wasmtime
# cargo install --force --version 0.1.27 cargo-wasi --locked
# just test_wasi
- name: Run WASI tests
run: |
rustup toolchain install nightly
rustup target add wasm32-wasi
cargo install --force --version 0.1.27 cargo-wasi --locked
just test_wasi

0 comments on commit 5bba28e

Please sign in to comment.