From 578a89d18027d14b1d1da38b2411e0bd64544e4d Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 11 Aug 2025 01:40:55 -0700 Subject: [PATCH] fix: build and install leann meta package on all platforms The leann meta package is pure Python and platform-independent, so there's no reason to restrict it to Ubuntu only. This ensures all platforms use consistent local builds instead of falling back to PyPI versions. --- .github/workflows/build-reusable.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-reusable.yml b/.github/workflows/build-reusable.yml index ea39435..e0b3349 100644 --- a/.github/workflows/build-reusable.yml +++ b/.github/workflows/build-reusable.yml @@ -169,11 +169,9 @@ jobs: cd ../.. # Build meta package (platform independent) - if [[ "${{ matrix.os }}" == ubuntu-* ]]; then - cd packages/leann - uv build - cd ../.. - fi + cd packages/leann + uv build + cd ../.. - name: Repair wheels (Linux) if: runner.os == 'Linux' @@ -242,10 +240,8 @@ jobs: # Install the built wheels directly without checking PyPI # This avoids the dependency resolution issue for new platforms - if [[ "${{ matrix.os }}" == ubuntu-* ]]; then - uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz - uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz - fi + uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz + uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz # Install backend wheels directly with Python version filtering PYTHON_VERSION="${{ matrix.python }}"