mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-13 22:26:53 +00:00
The affected jobs were cancelled before runner assignment with GitHub's scheduled macOS 14 brownout annotation. macOS 14 runner images retire on November 2, 2026: https://github.com/actions/runner-images/issues/13518. This moves the Python and CLI workflows to `macos-15` and keeps two distinct Rust macOS legs with `macos-15` and `macos-26`. All selected labels are public ARM64 runners, preserving the architecture of the previous plain `macos-14` jobs. Validation: `git diff --check` and Ruby YAML parsing passed for all three changed workflows. A targeted `actionlint` check also passed; existing repository-wide custom-runner, reusable-workflow input, and shellcheck findings are outside this diff.
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
name: CLI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
paths:
|
|
- 'rust/lancedb/**'
|
|
- 'Cargo.toml'
|
|
- 'Cargo.lock'
|
|
- '.github/workflows/cli.yml'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-24.04, macos-15]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
|
|
with:
|
|
components: clippy
|
|
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
|
|
- name: Install Linux prerequisites
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libssl-dev clang
|
|
- name: Install macOS prerequisites
|
|
if: runner.os == 'macOS'
|
|
run: brew install protobuf
|
|
- name: Build standalone CLI binary
|
|
run: cargo build --locked --profile ci -p lancedb-cli --bin lancedb
|
|
- name: Test standalone CLI
|
|
run: cargo test --locked --profile ci -p lancedb-cli
|
|
- name: Test SDK SQL
|
|
run: cargo test --locked --profile ci -p lancedb --features remote --lib remote::sql
|
|
- name: Lint CLI
|
|
run: cargo clippy --locked --profile ci -p lancedb-cli --all-targets --all-features -- -D warnings
|
|
- name: Check SDK without remote support
|
|
# Feature-disabled SDK code has existing unused-code warnings; this is a compile check.
|
|
env:
|
|
RUSTFLAGS: ""
|
|
run: cargo check --locked --profile ci -p lancedb --no-default-features --tests
|