Skip to content

Commit 58ec8f9

Browse files
Create dev-build.yml
1 parent 1e021d5 commit 58ec8f9

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

.github/workflows/dev-build.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build dev binaries
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
build-ubuntu:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
# setup python
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
- name: Build binaries
19+
run: |
20+
pip install -r requirements.txt
21+
pip install pyinstaller
22+
pyinstaller --onefile __main__.py
23+
- name: Move binaries
24+
run: |
25+
mkdir bin
26+
mv dist/__main__ bin
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: bin-ubuntu
31+
path: bin
32+
build-mac:
33+
runs-on: macos-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
# setup python
37+
- name: Set up Python 3.8
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: 3.8
41+
- name: Build binaries
42+
run: |
43+
pip install -r requirements.txt
44+
pip install pyinstaller
45+
pyinstaller --onefile __main__.py
46+
- name: Move binaries
47+
run: |
48+
mkdir bin
49+
mv dist/__main__ bin
50+
- name: Upload artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: bin-mac
54+
path: bin
55+
build-win:
56+
runs-on: windows-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
# setup python
60+
- name: Set up Python 3.8
61+
uses: actions/setup-python@v2
62+
with:
63+
python-version: 3.8
64+
- name: Build binaries
65+
run: |
66+
pip install -r requirements.txt
67+
pip install pyinstaller
68+
pyinstaller --onefile __main__.py
69+
- name: Upload artifact
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: bin-win
73+
path: dist

0 commit comments

Comments
 (0)