From 99b214203e1e2da00ca747f8668a3f8359e74b42 Mon Sep 17 00:00:00 2001 From: Swanand Mulay <73115739+swanandx@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:37:33 +0530 Subject: [PATCH] chore: fix rust-cache in CI with proper key and global RUSTFLAG (#764) --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b9990620..4d7de6a02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,9 @@ on: name: Build and Test +env: + RUSTFLAGS: "-D warnings" + jobs: test: name: Build and test on ${{ matrix.os }} with ${{ matrix.features }} @@ -29,6 +32,8 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }}-cargo - uses: taiki-e/install-action@v1 with: @@ -46,8 +51,6 @@ jobs: - name: Check rumqttc and rumqttd run: cargo hack clippy --verbose --each-feature --no-dev-deps --optional-deps url -p rumqttc -p rumqttd - env: - RUSTFLAGS: "-D warnings" - name: Check docs if: ${{ matrix.os != 'windows-latest' }}