Skip to content

Commit a4909f3

Browse files
authored
ci: build Windows executable with PyInstaller (#9)
1 parent 37a1e04 commit a4909f3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Pyinstaller builds
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
build-windows:
11+
runs-on: windows-2019
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install binarylane-cli
22+
run: pip install .
23+
24+
- name: Install PyInstaller
25+
run: pip install pyinstaller
26+
27+
- name: Run PyInstaller
28+
run: pyinstaller --name bl --onefile --copy-metadata binarylane-cli --collect-submodules binarylane src/binarylane/console/__main__.py
29+
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: windows
33+
path: dist/*

0 commit comments

Comments
 (0)