-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.04 KB
/
windows-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Windows application
on:
workflow_dispatch:
push:
# Pattern matched against refs/tags
tags:
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -r pyinstaller/requirements.txt
- name: Build with pyinstaller
run: |
pyinstaller pyinstaller/windows_app.spec
- name: Publish
uses: actions/upload-artifact@v4
with:
name: sqc-artifact
path: dist
- name: Build installer
run: |
$VERSION = python -c "import sqc; print(sqc.__version__)"
ISCC.exe /DVersion=$VERSION innosetup.iss
- name: Publish installer
uses: actions/upload-artifact@v4
with:
name: sqc-setup-artifact
path: dist/sqc*.exe