Skip to content

add wasm32-wasip2 target in script #12

add wasm32-wasip2 target in script

add wasm32-wasip2 target in script #12

Workflow file for this run

name: cargo
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
TINYGO_VERSION: "0.35.0"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup tinygo
run: |
wget https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo_${TINYGO_VERSION}_amd64.deb
sudo dpkg -i tinygo_${TINYGO_VERSION}_amd64.deb
- run: cargo install wasm-tools wkg
- run: script/init
- run: script/build-examples
- run: cargo build --verbose
- run: cargo test --verbose