Files
lancedb/.github/workflows/cli-installer.yml
T
Bruno Ramirez dd69a2c535 feat(cli): install release binaries with a shell script (#5082)
Install the public CLI from GitHub Releases with `sh
scripts/install.sh`. The script selects the macOS Apple Silicon or Linux
ARM64/x86-64 archive, verifies its SHA-256 and reported version, and
installs it under the user's home directory. Set `LANCEDB_VERSION` to
pin a release, including a beta. The default resolves GitHub's latest
stable tag, which must have CLI assets.

If an Enterprise or other `lancedb` is already on PATH, the installer
asks for a separate install directory. An existing destination
(including a symlink) is always preserved.

The installer workflow exercises that same release on all three native
targets and checks checksum failures and existing executable handling.
2026-11-18 08:40:53 -08:00

33 lines
890 B
YAML

name: CLI shell installer
on:
pull_request:
paths:
- 'scripts/install.sh'
- 'ci/tests/test_cli_installer.sh'
- '.github/workflows/cli-installer.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- run: sh ci/tests/test_cli_installer.sh
- name: Install a pinned public release and run it
env:
LANCEDB_VERSION: v0.42.0-beta.19
run: |
export LANCEDB_INSTALL_DIR="$RUNNER_TEMP/cli bin"
sh scripts/install.sh
test "$("$LANCEDB_INSTALL_DIR/lancedb" --version)" = "lancedb ${LANCEDB_VERSION#v}"
"$LANCEDB_INSTALL_DIR/lancedb" profile list