Skip to content

Commit f5b3c82

Browse files
committed
Add Github automation to generate Windows installer on releases
1 parent 458e2ad commit f5b3c82

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Generate release (Windows)
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
generate-release:
11+
12+
runs-on: windows-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.13"]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install -r requirements.txt
30+
31+
- name: Run PyInstaller to create binaries
32+
run: |
33+
pyinstaller.exe --noconfirm turing-system-monitor.spec
34+
35+
- name: Create InnoSetup installer from generated binaries
36+
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
37+
with:
38+
path: tools/windows-installer/turing-system-monitor.iss
39+
options: /O+
40+
41+
- name: Archive a screenshot
42+
uses: actions/upload-artifact@v4
43+
with:
44+
path: tools/windows-installer/Output/turing-system-monitor_*.exe

0 commit comments

Comments
 (0)