fix: pure Python packages not building due to ubuntu-latest check
The build workflow was checking for matrix.os == 'ubuntu-latest', but we changed the matrix to use 'ubuntu-22.04', causing the pure Python packages (leann-core and leann) to never be built. Changed to use pattern matching [[ == ubuntu-* ]] to match any Ubuntu version. This explains why v0.1.9 only published the C++ backend packages but not the pure Python packages.
This commit is contained in:
4
.github/workflows/build-reusable.yml
vendored
4
.github/workflows/build-reusable.yml
vendored
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: |
|
run: |
|
||||||
# Build core (platform independent)
|
# Build core (platform independent)
|
||||||
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
|
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
|
||||||
cd packages/leann-core
|
cd packages/leann-core
|
||||||
uv build
|
uv build
|
||||||
cd ../..
|
cd ../..
|
||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# Build meta package (platform independent)
|
# Build meta package (platform independent)
|
||||||
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
|
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
|
||||||
cd packages/leann
|
cd packages/leann
|
||||||
uv build
|
uv build
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|||||||
Reference in New Issue
Block a user