From b38c25626663d0777cb1891faac1489d7bb1cbb3 Mon Sep 17 00:00:00 2001 From: "Daniel Szoke (via Pi Coding Agent)" Date: Thu, 12 Feb 2026 11:30:45 +0000 Subject: [PATCH] ci: enforce workflow-level RUSTFLAGS in CI Move RUSTFLAGS=-Dwarnings to workflow-level env in ci.yml and remove duplicated step-level env blocks from check and MSRV jobs. Closes #976 Closes [RUST-142](https://linear.app/getsentry/issue/RUST-142/enforce-rustflags=-dwarnings-across-all-ci-jobs) Co-authored-by: Daniel Szoke --- .github/workflows/ci.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c13073b..481fbe1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: - "release/**" pull_request: +env: + RUSTFLAGS: -Dwarnings + jobs: lints: name: Lints @@ -42,43 +45,29 @@ jobs: - name: Check all features run: cargo check --all-features - env: - RUSTFLAGS: -Dwarnings - name: Check sentry-core without default features run: cargo check --no-default-features working-directory: sentry-core - env: - RUSTFLAGS: -Dwarnings - name: Check default features run: cargo check - env: - RUSTFLAGS: -Dwarnings - name: Check sentry panic feature without defaults run: cargo check --no-default-features --features panic working-directory: sentry - env: - RUSTFLAGS: -Dwarnings - name: Check sentry curl feature run: cargo check --features curl working-directory: sentry - env: - RUSTFLAGS: -Dwarnings - name: Check sentry curl+panic without defaults run: cargo check --no-default-features --features curl,panic working-directory: sentry - env: - RUSTFLAGS: -Dwarnings - name: Check sentry-actix run: cargo check working-directory: sentry-actix - env: - RUSTFLAGS: -Dwarnings test: strategy: @@ -122,13 +111,9 @@ jobs: - name: Check sentry-core without default features run: cargo check --no-default-features working-directory: sentry-core - env: - RUSTFLAGS: -Dwarnings - name: Check default features run: cargo check - env: - RUSTFLAGS: -Dwarnings - name: Test sentry test feature run: cargo test --features=test