-
Notifications
You must be signed in to change notification settings - Fork 102
85 lines (75 loc) · 2.42 KB
/
build.yml
File metadata and controls
85 lines (75 loc) · 2.42 KB
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
name: Build
on:
push:
workflow_dispatch:
release:
types: [published]
jobs:
macOS:
name: Build macOS
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
# - name: Set up Python 3
# run: brew install python3
- name: Install Python Dependencies
run: pip3 install -r requirements.txt
- name: Install Debug Dependencies
run: pip3 install pyinstaller
- name: Build for macOS
run: pyinstaller spec/macOS.spec
- name: Zip
run: cd dist; zip macOS.zip macOS
- name: Upload to Artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts macOS
path: dist/macOS.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/macOS.zip
tag: ${{ github.ref }}
file_glob: true
windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install Python Dependencies
run: pip3 install -r requirements.txt
- name: Install Debug Dependencies
run: pip3 install pyinstaller
- name: Build for Windows
run: pyinstaller spec\Windows.spec && pyinstaller spec\Windows_dir.spec && pyinstaller spec\debug_dump.spec && pyinstaller spec\debug_dump_dir.spec
- uses: vimtor/action-zip@v1
with:
files: dist/Windows/
recursive: false
dest: dist/Windows.zip
- uses: vimtor/action-zip@v1
with:
files: dist/debug_dump/
recursive: false
dest: dist/debug_dump.zip
- name: Upload to Artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts Windows
path: |
dist/*.exe
dist/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.*
tag: ${{ github.ref }}
file_glob: true