diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ef3733f..d3c8af3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -39,9 +39,7 @@ jobs: toolchain: ${{ matrix.toolchain }} components: clippy - name: cargo clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} + run: cargo clippy -- -D warnings doc: runs-on: ubuntu-latest name: nightly / doc diff --git a/.github/workflows/nostd.yml b/.github/workflows/nostd.yml index b2e711c..f4d5c20 100644 --- a/.github/workflows/nostd.yml +++ b/.github/workflows/nostd.yml @@ -22,3 +22,5 @@ jobs: run: rustup target add ${{ matrix.target }} - name: cargo check run: cargo check --target ${{ matrix.target }} --no-default-features + env: + RUSTFLAGS: "-Dwarnings" diff --git a/.github/workflows/safety.yml b/.github/workflows/safety.yml index 9b0f828..627a7d4 100644 --- a/.github/workflows/safety.yml +++ b/.github/workflows/safety.yml @@ -28,15 +28,24 @@ jobs: run: cargo test --lib --tests --all-features --target x86_64-unknown-linux-gnu env: ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0" - RUSTFLAGS: "--cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address" + RUSTFLAGS: "--cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address -Dwarnings" - name: cargo test -Zsanitizer=leak if: always() run: cargo test --all-features --target x86_64-unknown-linux-gnu env: LSAN_OPTIONS: "suppressions=lsan-suppressions.txt" - RUSTFLAGS: "--cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak" + RUSTFLAGS: "--cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak -Dwarnings" miri: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + flags: [ + "", + "-Zmiri-tree-borrows", + "-Zmiri-strict-provenance", + "-Zmiri-tree-borrows -Zmiri-strict-provenance" + ] steps: - uses: actions/checkout@v4 with: @@ -48,10 +57,11 @@ jobs: with: toolchain: ${{ env.NIGHTLY }} components: miri - - name: cargo miri test + - name: ${{ matrix.flags }} cargo miri test run: cargo miri test env: - MIRIFLAGS: "" + RUSTFLAGS: "-Dwarnings" + MIRIFLAGS: ${{ matrix.flags }} # loom: # runs-on: ubuntu-latest # steps: diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index e541996..605ab57 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -27,6 +27,8 @@ jobs: run: cargo generate-lockfile - name: cargo test --locked run: cargo test --locked --all-features --all-targets + env: + RUSTFLAGS: "-Dwarnings" # https://twitter.com/alcuadrado/status/1571291687837732873 update: runs-on: ubuntu-latest @@ -46,4 +48,4 @@ jobs: - name: cargo test run: cargo test --locked --all-features --all-targets env: - RUSTFLAGS: -D deprecated + RUSTFLAGS: -Ddeprecated -Dwarnings diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ab465f..052a48f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,9 +29,13 @@ jobs: # https://twitter.com/jonhoo/status/1571290371124260865 - name: cargo test --locked run: cargo test --locked --all-features --all-targets + env: + RUSTFLAGS: "-Dwarnings" # https://github.com/rust-lang/cargo/issues/6669 - name: cargo test --doc run: cargo test --locked --all-features --doc + env: + RUSTFLAGS: "-Dwarnings" os-check: runs-on: ${{ matrix.os }} name: ${{ matrix.os }} / nightly @@ -53,4 +57,6 @@ jobs: if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile - name: cargo test - run: cargo test --locked --all-features --all-targets + run: cargo test --locked --all-features --all-targets + env: + RUSTFLAGS: "-Dwarnings"