-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (73 loc) · 1.95 KB
/
build.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
defaults:
run:
shell: bash
runs-on: windows-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.0b1
- name: Cache PyInstaller
uses: actions/cache@v2
id: cache-pyinstaller
env:
cache-name: cache-pyinstaller
with:
path: pyinstaller
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Clone PyInstaller
if: steps.cache-pyinstaller.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: pyinstaller/pyinstaller
ref: v4.5.1
path: pyinstaller
- name: Build bootloader
if: steps.cache-pyinstaller.outputs.cache-hit != 'true'
run: |
cd pyinstaller/bootloader
python ./waf all
- name: Check out repository
uses: actions/checkout@v2
with:
path: main
submodules: true
- name: Install PyInstaller
run: |
cd main
poetry add $GITHUB_WORKSPACE/pyinstaller/ --no-interaction
- name: Install dependencies
run: |
cd main
poetry install --no-interaction --no-root
- name: Install package
run: |
cd main
poetry install --no-interaction
- name: Build exe
run: |
cd main
poetry run pyinstaller -y onefile.spec
env:
KIVY_GL_BACKEND: angle_sdl2
- name: Archive exe
uses: actions/upload-artifact@v2
with:
name: IdleonSaver.exe
path: main/dist/IdleonSaver.exe