Skip to content

Commit 86481c8

Browse files
committed
Add wasm32 nightly workflow
1 parent cfbf334 commit 86481c8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/check.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,42 @@ jobs:
9292
toolchain: stable
9393
components: clippy
9494
target: wasm32-wasi
95+
- name: Build all targets
96+
uses: actions-rs/cargo@v1
97+
with:
98+
command: build
99+
args: --target wasm32-wasi --workspace --all-targets
100+
- name: Run Clippy linter
101+
uses: actions-rs/cargo@v1
102+
with:
103+
command: clippy
104+
args: --target wasm32-wasi --workspace --all-targets -- -D warnings
105+
- name: Install cargo-wasi
106+
uses: actions-rs/cargo@v1
107+
with:
108+
command: install
109+
args: cargo-wasi
110+
- name: Install wasmtime
111+
run: |
112+
curl https://wasmtime.dev/install.sh -sSf | bash
113+
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
114+
- name: Run tests
115+
uses: actions-rs/cargo@v1
116+
with:
117+
command: wasi
118+
args: test --workspace
119+
wasm32-nightly:
120+
name: wasm32 nightly
121+
runs-on: ubuntu-latest
122+
steps:
123+
- uses: actions/checkout@v2
124+
- name: Install nightly toolchain
125+
uses: actions-rs/toolchain@v1
126+
with:
127+
toolchain: nightly
128+
override: true
129+
components: clippy
130+
target: wasm32-wasi
95131
- name: Build all targets
96132
uses: actions-rs/cargo@v1
97133
with:

0 commit comments

Comments
 (0)