Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,35 @@ jobs:
- name: Build
run: make build

# Checks each crate individually to catch missing feature declarations that
# are otherwise masked by Cargo's feature unification across the workspace.
check_standalone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder

- name: Cache Rust artifacts
uses: swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2

- name: Install protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check each crate standalone
run: |
for pkg in $(cargo metadata --no-deps --format-version=1 | jq -r '.packages[].name'); do
echo "Checking $pkg..."
cargo check -p "$pkg" --all-targets || exit 1
done

# Verifies the core iceberg crate compiles without default features, ensuring
# optional functionality is properly gated behind feature flags.
build_with_no_default_features:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
Loading