ci(nix): check develop on linux and mac #1537
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: Lints | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- '*.md' | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
jobs: | |
fmt: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cargo Format | |
run: scripts/lint-fmt | |
clippy: | |
name: Clippy | |
needs: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Rust Cache (custom) | |
uses: actions/cache@v3 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/registry/src/**/librocksdb-sys-* | |
~/.cargo/git/db/ | |
target/ | |
key: custom-rust-clippy-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: custom-rust-clippy- | |
- name: Cargo Clippy | |
run: scripts/lint-clippy |