feat: add lance_dataset_compact_files for fragment compaction #23
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Consumer smoke test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # Only fire on PRs that could affect the install layout / consumer-facing | |
| # build. Pure src/*.rs changes are covered by the regular Tests jobs. | |
| paths: | |
| - 'CMakeLists.txt' | |
| - 'cmake/**' | |
| - 'include/**' | |
| - 'examples/cmake-consumer/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/consumer-smoke-test.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: "1" | |
| jobs: | |
| consumer-smoke-test: | |
| name: find_package(LanceC) smoke test | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runner: ubuntu-24.04 | |
| os_label: linux | |
| - runner: macos-14 | |
| os_label: macos | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install protobuf-compiler (Linux) | |
| if: matrix.os_label == 'linux' | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: Install protobuf (macOS) | |
| if: matrix.os_label == 'macos' | |
| run: brew install protobuf | |
| - name: Configure + build + install lance-c | |
| run: | | |
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| cmake --install build --prefix "$PWD/_install" | |
| - name: Build consumer example against the install | |
| run: | | |
| cmake -S examples/cmake-consumer -B consumer-build \ | |
| -DCMAKE_PREFIX_PATH="$PWD/_install" \ | |
| -DCMAKE_BUILD_TYPE=Release | |
| cmake --build consumer-build | |
| - name: Verify the binary links and runs (no dataset → expect usage error) | |
| run: | | |
| set +e | |
| consumer-build/consumer | |
| rc=$? | |
| if [ "$rc" -ne 2 ]; then | |
| echo "Expected exit code 2 (usage error), got $rc" | |
| exit 1 | |
| fi |