mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
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.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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
|
||||
Reference in New Issue
Block a user