Skip to content

Commit

Permalink
add wasm32-wasi target to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Chi committed Sep 29, 2023
1 parent 540a8b6 commit 0bce507
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Add wasm32-wasi target
run: rustup target add wasm32-wasi

- name: Build
run: cargo build --target wasm32-wasi --verbose
run: cargo build --target wasm32-wasi --verbose
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ wasm-opt --strip-debug target/wasm32-wasi/debug/water_wasm_template.wasm -o ./pr
then you should find a `proxy.wasm` binary file in the root directory.

## TODOs:
- [] Detailed API doc
- [] Another more complicated example (idealy SS)
- [ ] Detailed API doc
- [ ] Another more complicated example (idealy SS)

0 comments on commit 0bce507

Please sign in to comment.