Verified Commit 4591ed57 authored by Michael Usachenko's avatar Michael Usachenko Committed by GitLab
Browse files

fix(ci): exclude duckdb-client from --all-features to avoid bundled C++ build

parent 49e84f5f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -123,7 +123,8 @@ lint-check:
    - .sccache-template
    - .mr-only-rules
  script:
    - cargo clippy --all-targets --all-features -- -D warnings
    - cargo clippy --workspace --exclude duckdb-client --all-targets --all-features -- -D warnings
    - cargo clippy -p duckdb-client --all-targets -- -D warnings
    - sccache --show-stats || true

# Security Stage
@@ -153,7 +154,10 @@ cargo-geiger:
    - .mr-and-main-rules
  needs: []
  script:
    - for pkg in $(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name'); do cargo geiger -p "$pkg" --all-features || true; done
    - cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name' | while IFS= read -r pkg; do
        if [ "$pkg" = "duckdb-client" ]; then cargo geiger -p "$pkg" || true;
        else cargo geiger -p "$pkg" --all-features || true; fi;
      done
  allow_failure: true

generate-sbom:
+6 −2
Original line number Diff line number Diff line
@@ -78,13 +78,17 @@ run = "cargo fmt --all -- --check"
description = "Check Rust formatting"

[tasks."lint:code"]
run = "cargo clippy --all-targets --all-features -- -D warnings"
run = [
  "cargo clippy --workspace --exclude duckdb-client --all-targets --all-features -- -D warnings",
  "cargo clippy -p duckdb-client --all-targets -- -D warnings",
]
description = "Run clippy lint checks"

[tasks."lint:code:fix"]
run = [
  "cargo fmt",
  "cargo clippy --all-targets --all-features --fix --allow-dirty -- -D warnings",
  "cargo clippy --workspace --exclude duckdb-client --all-targets --all-features --fix --allow-dirty -- -D warnings",
  "cargo clippy -p duckdb-client --all-targets --fix --allow-dirty -- -D warnings",
  "cargo fmt",
]
description = "Run clippy lint checks and fix applicable issues"