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