Skip to content

Commit 91944e7

Browse files
authored
Create main.yml
1 parent 77be112 commit 91944e7

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

0 commit comments

Comments
 (0)