-
Notifications
You must be signed in to change notification settings - Fork 20
108 lines (103 loc) · 3.86 KB
/
main.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: PyInstaller builds
on: [push, workflow_dispatch]
jobs:
build_ubuntu64_20:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.11 x64
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Update builds tools
run: python -m pip install --upgrade setuptools wheel
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Install PyInstaller
run: python -m pip install --upgrade PyInstaller
- name: Run pyinst.py
run: python3 pyinst.py --no-prompts --onefile --no-upx --no-crt --no-clean --windowed
- name: Create archive (.tar.xz)
run: tar -cavf Pesterchum_linux64.tar.xz -C dist Pesterchum
- uses: actions/upload-artifact@v3
with:
name: Pesterchum_linux64.tar.xz
path: Pesterchum_linux64.tar.xz
build_win64_310:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.11 x64
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Update builds tools
run: python -m pip install --upgrade setuptools wheel
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Install PyInstaller
run: python -m pip install --upgrade PyInstaller
- name: Run PyInstaller
run: python3 pyinst.py --no-prompts --onefile --no-upx --crt --no-clean --windowed
- name: Create archive (.zip)
run: tar.exe -a -c -f Pesterchum_win64_py311.zip -C dist Pesterchum
- uses: actions/upload-artifact@v3
with:
name: Pesterchum_win64_py311.zip
path: Pesterchum_win64_py311.zip
build_win32_38:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.8 x86
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x86'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Update builds tools
run: python -m pip install --upgrade setuptools wheel
- name: Install dependencies
run: python -m pip install -r requirements-qt5.txt
- name: Install PyInstaller
run: python -m pip install --upgrade PyInstaller
- name: Run PyInstaller
run: python3 pyinst.py --prompts False --onefile True --upx False --crt True --clean False --windowed True
- name: Create archive (.zip)
run: tar.exe -a -c -f Pesterchum_win32_py38.zip -C dist Pesterchum
- uses: actions/upload-artifact@v3
with:
name: Pesterchum_win32_py38.zip
path: Pesterchum_win32_py38.zip
build_macos64_11:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.11 x64
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Update builds tools
run: python -m pip install --upgrade setuptools wheel
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Install PyInstaller
run: python -m pip install --upgrade PyInstaller
- name: Run pyinst.py
run: python3 pyinst.py --no-prompts --onefile --no-upx --no-crt --no-clean --windowed
- name: Create archive (.tar.xz)
run: tar -cavf Pesterchum_macOS64.tar.xz -C dist Pesterchum.app
- uses: actions/upload-artifact@v3
with:
name: Pesterchum_macOS64.tar.xz
path: Pesterchum_macOS64.tar.xz