Skip to content

Commit

Permalink
chore: fix rust-cache in CI with proper key and global RUSTFLAG (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
swanandx authored Dec 8, 2023
1 parent aa92939 commit 99b2142
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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' }}
Expand Down

0 comments on commit 99b2142

Please sign in to comment.