Skip to content

Commit

Permalink
GH-3: Add wasm32-wasi target to toolchain to be able to build wasm/wa…
Browse files Browse the repository at this point in the history
…si modules
  • Loading branch information
CMDJojo committed Feb 3, 2023
1 parent 3511b8d commit d624066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/DeployPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install toolchain (minimal, stable, wasm32-unknown-unknown)
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
targets: wasm32-unknown-unknown, wasm32-wasi
- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
- name: Make build script executable
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/RustCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
uses: actions/checkout@v3
- name: Install toolchain (minimal, stable)
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasi
- name: Run cargo check
run: cargo check --verbose

Expand All @@ -29,6 +31,8 @@ jobs:
uses: actions/checkout@v3
- name: Install toolchain (minimal, stable)
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasi
- name: Run cargo test
run: cargo test --verbose --no-fail-fast

Expand All @@ -42,6 +46,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: wasm32-wasi
- name: Run cargo clippy
run: cargo clippy --verbose -- -D warnings

Expand All @@ -55,5 +60,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
targets: wasm32-wasi
- name: Run cargo fmt
run: cargo fmt --verbose -- --check

0 comments on commit d624066

Please sign in to comment.