diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4f6b62..cad9b17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,3 +31,24 @@ jobs: with: name: windows path: dist/* + + build-linux: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Create static binary + run: > + uv run --no-project --python 3.10 --with .,pyinstaller,staticx -- + bash -c 'pyinstaller --name bl --onefile --copy-metadata binarylane-cli + --collect-submodules binarylane src/binarylane/console/__main__.py && + staticx --strip --no-compress dist/bl dist/bl' + + - uses: actions/upload-artifact@v4 + with: + name: linux-x64 + path: dist/*