ci(lint): use wasm toolchain from nix #7
Workflow file for this run
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: Lint | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
paths: ["**.rs", "**.toml", "**.lock"] | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- name: clippy | |
run: | | |
nix develop --command cargo clippy | |
nix develop --command cargo clippy --target wasm32-unknown-unknown --lib | |
nix develop --command cargo clippy --target wasm32-unknown-unknown --lib --all-features | |
- name: rustfmt check | |
run: | | |
cargo fmt --all --check |