Skip to content

Commit 350e67a

Browse files
committed
ci: build static linux-x64 binary on tag
1 parent 7868849 commit 350e67a

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/checks.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,37 @@ jobs:
6262
run: poetry run task test
6363
env:
6464
TASKIPY: true
65+
66+
build-linux:
67+
runs-on: ubuntu-22.04
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v3
71+
72+
- name: Set up Python
73+
uses: actions/setup-python@v4
74+
with:
75+
python-version: '3.10'
76+
77+
- name: Install binarylane-cli
78+
run: pip install .
79+
80+
- name: Install PyInstaller
81+
run: pip install pyinstaller
82+
83+
- name: Run PyInstaller
84+
run: pyinstaller --name bl --onefile --copy-metadata binarylane-cli --collect-submodules binarylane src/binarylane/console/__main__.py
85+
86+
- name: Install StaticX
87+
run: pip install staticx
88+
89+
- name: Install patchelf
90+
run: sudo apt install -y patchelf
91+
92+
- name: Run StaticX
93+
run: staticx --strip --no-compress dist/bl dist/bl
94+
95+
- uses: actions/upload-artifact@v3
96+
with:
97+
name: linux-x64
98+
path: dist/*

0 commit comments

Comments
 (0)