wasm32-wasi -> wasm32-wasip1 #471
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- Stable | |
- Unstable | |
include: | |
- label: Stable | |
postfix: _stable | |
features: '""' | |
- label: Unstable | |
postfix: _unstable | |
features: '"unstable"' | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: stable | |
targets: wasm32-wasip1 | |
- name: Build | |
run: | | |
cargo release --locked --features ${{ matrix.features }} | |
- name: Prepare Release | |
run: | | |
cp target/wasm32-wasip1/release/hollowknight_autosplit_wasm.wasm hollowknight_autosplit_wasm${{ matrix.postfix }}.wasm | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true | |
files: hollowknight_autosplit_wasm*.wasm | |
clippy: | |
name: Check clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
components: clippy | |
targets: wasm32-wasip1 | |
- name: Run Clippy | |
run: cargo clippy --all-features | |
format: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
components: rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt -- --check || true |