diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 963748d1..f4a02a16 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,6 +7,8 @@ on: env: CARGO_TERM_COLOR: always + # Make sure CI fails on all warnings, including Clippy lints + RUSTFLAGS: "-Dwarnings" jobs: build: @@ -17,7 +19,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - + - name: Run Clippy + run: cargo clippy --all-targets --all-features - name: Install latest mdbook run: | tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b622cca5..b56fa0d9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,6 +7,8 @@ on: env: CARGO_TERM_COLOR: always + # Make sure CI fails on all warnings, including Clippy lints + RUSTFLAGS: "-Dwarnings" jobs: build: @@ -17,6 +19,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - name: Run Clippy + run: cargo clippy --all-targets --all-features - name: Build run: cargo build --verbose --no-default-features - name: Run tests