File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build BScript GUI
2+
3+ on :
4+ workflow_run :
5+ branches : [ main ]
6+
7+ jobs :
8+ build-windows :
9+ runs-on : windows-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Set up Python
13+ uses : actions/setup-python@v5
14+ with :
15+ python-version : ' 3.11'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install pyinstaller
20+ pip install -r requirements.txt || echo "No requirements.txt"
21+ - name : Build Windows executable
22+ run : |
23+ pyinstaller --windowed --onefile bscript-gui.py
24+ - name : Upload Windows artifact
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : bscript-gui-windows
28+ path : dist/bscript-gui.exe
29+
30+ build-linux :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v4
34+ - name : Set up Python
35+ uses : actions/setup-python@v5
36+ with :
37+ python-version : ' 3.11'
38+ - name : Install dependencies
39+ run : |
40+ python -m pip install --upgrade pip
41+ pip install pyinstaller
42+ pip install -r requirements.txt || echo "No requirements.txt"
43+ - name : Build Linux executable
44+ run : |
45+ pyinstaller --windowed --onefile bscript-gui.py
46+ - name : Upload Linux artifact
47+ uses : actions/upload-artifact@v4
48+ with :
49+ name : bscript-gui-linux
50+ path : dist/bscript-gui
You can’t perform that action at this time.
0 commit comments