From 7f15b361fc88f58c954e20096ab94deadbce3165 Mon Sep 17 00:00:00 2001 From: Nathan O'Sullivan Date: Wed, 12 Feb 2025 14:49:12 +1000 Subject: [PATCH] ci: build static linux-x64 binary on tag --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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/*