-
Notifications
You must be signed in to change notification settings - Fork 182
103 lines (97 loc) · 2.73 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Build Workflow
on:
push:
# branches: master
jobs:
build-windows:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
architecture: 'x64'
- name: Install requirements
run: |
pip install -r requirements.txt -r requirements_build.txt
- name: Run PyInstaller
run: |
python -m PyInstaller tasmotizer.spec
- uses: actions/upload-artifact@v4
with:
name: Windows_tasmotizer
path: dist/tasmotizer-1.2.1.exe
build-windows-x86:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
architecture: 'x86'
- name: Install requirements
run: |
pip install -r requirements.txt -r requirements_build.txt
- name: Run PyInstaller
run: |
python -m PyInstaller tasmotizer32.spec
- uses: actions/upload-artifact@v4
with:
name: Windows_tasmotizer32
path: dist/tasmotizer-1.2.1-x86.exe
build-ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install requirements
run: |
pip install -r requirements.txt -r requirements_build.txt
- name: Run PyInstaller
run: |
python -m PyInstaller tasmotizer.spec
- name: See dist directory
run: ls dist
- name: 'Tar files'
run: gzip dist/tasmotizer-1.2.1
- name: 'show gzip'
run: ls dist
- uses: actions/upload-artifact@v4
with:
name: Ubuntu
path: dist/tasmotizer-1.2.1.gz
build-macos:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install requirements
run: |
pip install -r requirements.txt -r requirements_build.txt
- name: Run PyInstaller
run: |
python -m PyInstaller tasmotizer_mac.spec
- name: See dist directory
run: ls dist
- name: Move app
run: |
mv dist/tasmotizer-1.2.1.app dist/tasmotizer-1.2.1-dev-macOS.app
- name: 'Tar files'
run: tar -cvf dist.tar dist/*
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: macOS
path: dist.tar