Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rust-cache with proper key and global RUSTFLAG #764

Merged
merged 14 commits into from
Dec 8, 2023
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