-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (43 loc) · 1.2 KB
/
CI.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
43
44
45
46
47
48
# Build the project using the Bitcraze builder docker image
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Weekly build to make sure dependencies are OK
- cron: '30 19 * * 5'
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check and build
run: docker run --rm -v ${PWD}:/module bitcraze/builder ./tools/build/build
windows:
runs-on: windows-2019
needs: checks
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
python-version: 3.11.7
architecture: amd64
- name: Install dependencies
run: |
pip install -e .[pyqt5]
pip install cx_freeze~=6.15
pip install jinja2
choco install -y nsis.portable -version 3.02.0.20160720
- name: Build
run: python cx_setup.py build
- name: Build installer
run: |
python win32install\generate_nsis.py
makensis win32install\lpstools.nsi
- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: windows-build
path: "win32install/*.exe"