Run clippy in rust CI

This commit is contained in:
Agatha Lovelace 2024-01-08 21:46:14 +01:00
parent e8e4ce9a2f
commit 170b2a2d4d
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 11 additions and 3 deletions

View File

@ -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:
@ -18,4 +19,11 @@ jobs:
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
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