Skip to content

Commit 7f15b36

Browse files
committed
ci: build static linux-x64 binary on tag
1 parent 38a08f1 commit 7f15b36

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,24 @@ jobs:
3131
with:
3232
name: windows
3333
path: dist/*
34+
35+
build-linux:
36+
runs-on: ubuntu-22.04
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v3
40+
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v5
43+
44+
- name: Create static binary
45+
run: >
46+
uv run --no-project --python 3.10 --with .,pyinstaller,staticx --
47+
bash -c 'pyinstaller --name bl --onefile --copy-metadata binarylane-cli
48+
--collect-submodules binarylane src/binarylane/console/__main__.py &&
49+
staticx --strip --no-compress dist/bl dist/bl'
50+
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: linux-x64
54+
path: dist/*

0 commit comments

Comments
 (0)