Skip to content

Commit 38c387b

Browse files
committed
CI: add wasm32-wasip1-threads target (build only)
1 parent fcd20c8 commit 38c387b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/wasi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: wasi
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
build:
8+
name: cargo +nightly build --lib --features all --target wasm32-wasip1-threads
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions-rust-lang/setup-rust-toolchain@v1
13+
with:
14+
toolchain: nightly
15+
target: wasm32-wasip1-threads
16+
- run: |
17+
curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sysroot-25.0.tar.gz -o wasi-sysroot.tar.gz
18+
mkdir -p wasi-sysroot
19+
tar xf wasi-sysroot.tar.gz --strip-components=1 -C wasi-sysroot
20+
- run: |
21+
export "CFLAGS_wasm32_wasip1_threads=--sysroot=${{ github.workspace }}/wasi-sysroot -I${{ github.workspace }}/wasi-sysroot/include/wasm32-wasip1-threads -L-I${{ github.workspace }}/wasi-sysroot/lib/wasm32-wasip1-threads"
22+
cargo +nightly build --lib --features all --target wasm32-wasip1-threads
23+
24+
on:
25+
merge_group:
26+
types: [checks_requested]
27+
pull_request:
28+
branches: [main]
29+
types: [opened, synchronize, reopened, ready_for_review]
30+
push:
31+
branches:
32+
- main

0 commit comments

Comments
 (0)