Skip to content

Commit

Permalink
feat: support wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-herlemont committed Dec 28, 2023
1 parent e2bd632 commit 104e73c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_test_wasi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: WASI

on:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]

env:
RUST_BACKTRACE: full

jobs:
build_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
toolchain: [stable]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ matrix.toolchain }}
override: true
- name: Add target
run: rustup target add wasm32-wasi
- uses: extractions/setup-just@v1
- uses: hustcer/[email protected]
with:
version: '0.85'
env:
GITHUB_TOKEN: ${{ secrets.PAT_GLOBAL }}
- name: Just version
run: just --version
- name: Build
run: just build_wasi
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ build_default:
build_with_optional:
cargo build -F chrono -F uuid -F tokio

build_wasi:
cargo build --target=wasm32-wasi

build_all: build_no_default build_default build_with_optional

test_no_default:
Expand Down

0 comments on commit 104e73c

Please sign in to comment.