From 170b2a2d4dc17c20a11ddc9c0a8cc12b6dac28be Mon Sep 17 00:00:00 2001 From: "Agatha V. Lovelace" Date: Mon, 8 Jan 2024 21:46:14 +0100 Subject: [PATCH] Run clippy in rust CI --- rust/.github/workflows/build_nix.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rust/.github/workflows/build_nix.yml b/rust/.github/workflows/build_nix.yml index 2c2aeef..ede845d 100644 --- a/rust/.github/workflows/build_nix.yml +++ b/rust/.github/workflows/build_nix.yml @@ -1,7 +1,8 @@ +on: push name: "Build Nix package on Ubuntu" -on: - push: +env: + RUSTFLAGS: "-Dwarnings" jobs: build: @@ -18,4 +19,11 @@ jobs: - uses: actions/upload-artifact@v3 with: name: ${{ env.REPO_NAME }}-${{ env.COMMIT_HASH }}-x86_64-linux - path: result/bin/${{ env.REPO_NAME }} \ No newline at end of file + 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