Run clippy in rust CI
This commit is contained in:
parent
e8e4ce9a2f
commit
170b2a2d4d
|
@ -1,7 +1,8 @@
|
||||||
|
on: push
|
||||||
name: "Build Nix package on Ubuntu"
|
name: "Build Nix package on Ubuntu"
|
||||||
|
|
||||||
on:
|
env:
|
||||||
push:
|
RUSTFLAGS: "-Dwarnings"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -19,3 +20,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ env.REPO_NAME }}-${{ env.COMMIT_HASH }}-x86_64-linux
|
name: ${{ env.REPO_NAME }}-${{ env.COMMIT_HASH }}-x86_64-linux
|
||||||
path: result/bin/${{ env.REPO_NAME }}
|
path: result/bin/${{ env.REPO_NAME }}
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cachix/install-nix-action@v23
|
||||||
|
- name: Lint
|
||||||
|
run: nix develop --command cargo clippy --all-targets --all-features
|
||||||
|
|
Loading…
Reference in New Issue