File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments