Skip to content

Commit 35310dd

Browse files
committed
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.
1 parent fc9c5cb commit 35310dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-reusable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Build packages
8383
run: |
8484
# Build core (platform independent)
85-
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
85+
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
8686
cd packages/leann-core
8787
uv build
8888
cd ../..
@@ -107,7 +107,7 @@ jobs:
107107
cd ../..
108108
109109
# Build meta package (platform independent)
110-
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
110+
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
111111
cd packages/leann
112112
uv build
113113
cd ../..

0 commit comments

Comments
 (0)