fix target

expose target as env var

init test workflow
This commit is contained in:
geoffsee
2025-05-12 17:25:14 -04:00
parent 3c199b16a4
commit 381f09674c

25
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
TARGET: wasm32-unknown-unknown
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
rustup target add $TARGET
cargo build --verbose --target $TARGET
- name: Run tests
run: cargo test --verbose