Setup release workflow #17
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: "Check" | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
check-nix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v17 | |
with: | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: Format flake.nix | |
run: nix run nixpkgs#nixpkgs-fmt -- flake.nix --check | |
check-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- name: Check formatting | |
run: rustfmt --check | |
- name: Check clippy | |
run: cargo clippy -- -Dclippy::all -Dclippy::pedanti |