diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d6c0e94..da5e4ce 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -46,8 +46,10 @@ jobs: restore-keys: | ${{ runner.os }}-cargo-build-target- - # πŸ” Check only crates under bin/ + # πŸ‘‡ Don't fail CI on hero-runner's warnings - name: Check code (all crates under bin/) + env: + RUSTFLAGS: "--cap-lints=warn" run: | set -euo pipefail find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do @@ -55,8 +57,10 @@ jobs: cargo check --manifest-path "$manifest" --verbose done - # βœ… Run tests only for crates under bin/ + # πŸ‘‡ Same trick for tests, otherwise they’d fail for the same reason - name: Run tests (all crates under bin/) + env: + RUSTFLAGS: "--cap-lints=warn" run: | set -euo pipefail find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do @@ -64,7 +68,8 @@ jobs: cargo test --manifest-path "$manifest" --verbose done - # 🧹 Clippy only for crates under bin/ + # Clippy stays strict (still uses -D warnings for clippy lints). + # If this later fails because of hero-runner, we can also add RUSTFLAGS here. - name: Run clippy (all crates under bin/) run: | set -euo pipefail @@ -73,11 +78,10 @@ jobs: cargo clippy --manifest-path "$manifest" -- -D warnings done - # Formatting can safely stay workspace-wide - name: Check formatting run: cargo fmt --all -- --check - # πŸ— Build release binaries only for crates under bin/ + # Build was already succeeding; leaving it without cap-lints is fine. - name: Build release binaries (all crates under bin/) run: | set -euo pipefail @@ -104,4 +108,4 @@ jobs: target/release/runner_osiris target/release/runner_sal retention-days: 7 - if-no-files-found: warn + if-no-files-found: warn \ No newline at end of file