Skip to content
Draft
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions .github/workflows/build-lancedb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,28 @@ jobs:
sparse-checkout: patches/lancedb
persist-credentials: false

# lance >= 13.0.0 (lancedb >= v0.40.0) ships the riscv64 SIMD fallback
# itself (lancedb/lance#9446), so those versions carry no patches and
# skip the redirect to a patched lance checkout below.
- name: Apply lancedb patches
if: hashFiles(format('python-wheels/patches/lancedb/{0}/*.patch', env.LANCEDB_VERSION)) != ''
run: git apply -v python-wheels/patches/lancedb/${{ env.LANCEDB_VERSION }}/0001*.patch

# lancedb pins lance-core/lance-linalg to a different exact version per
# release (10.0.0 for v0.37.1, 11.0.0 for v0.38.0, 12.0.0 for v0.39.0),
# so the sibling checkout below must track whatever this lancedb tag's
# own Cargo.toml pins rather than a fixed tag.
- name: Determine the lance-core/lance-linalg version lancedb pins
if: hashFiles(format('python-wheels/patches/lancedb/{0}/*.patch', env.LANCEDB_VERSION)) != ''
run: echo "LANCE_VERSION=$(grep -m1 '^lance-core = ' Cargo.toml | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" >> "$GITHUB_ENV"

# lance-core's SIMD_SUPPORT static and lance-linalg's f32x8/f32x16/
# i32x8/f64x4/f64x8 SIMD types compile only for x86_64/aarch64/
# loongarch64 upstream; the 0002 patch adds a portable riscv64 fallback
# to this checkout, and Cargo.toml's `[patch.crates-io]` (0001) redirects
# both crates here.
# loongarch64 before lance 13.0.0; the 0002 patch adds a portable riscv64
# fallback to this checkout, and Cargo.toml's `[patch.crates-io]` (0001)
# redirects both crates here.
- name: Checkout lance v${{ env.LANCE_VERSION }} and add a riscv64 SIMD fallback
if: hashFiles(format('python-wheels/patches/lancedb/{0}/*.patch', env.LANCEDB_VERSION)) != ''
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: lancedb/lance
Expand All @@ -98,6 +104,7 @@ jobs:
persist-credentials: false

- name: Apply lance patches
if: hashFiles(format('python-wheels/patches/lancedb/{0}/*.patch', env.LANCEDB_VERSION)) != ''
run: cd lance && git apply -v ../python-wheels/patches/lancedb/${{ env.LANCEDB_VERSION }}/0002*.patch

- name: Free disk space
Expand Down
1 change: 1 addition & 0 deletions docs/packages/lancedb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ versions:
- filename: lancedb-0.39.0-cp310-abi3-manylinux_2_39_riscv64.whl
sha256: 758156284cb0b1d87d14fddc9066c7c7fba2c16f847a90d5d70dd7ee694a0283
requires-python: '>=3.10'
- version: 0.40.0
Loading