-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (69 loc) · 2.15 KB
/
build-canary.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
name: Build Canary
on: [push]
jobs:
Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build code
run: |
pip install pyinstaller
pyinstaller -F -w main.py -p core.py -p asstes/logo.ico -i asstes/logo.ico --hidden-import core
- name: Publish package
uses: actions/upload-artifact@v4
with:
name: Windows-Canary
path: D:\a\xinghai-deploy\xinghai-deploy\dist\main.exe
if-no-files-found: error
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build code
run: |
pip install pyinstaller
pyinstaller -F -w main.py -p core.py -p asstes/logo.png -i asstes/logo.ico --hidden-import core
- name: Publish package
uses: actions/upload-artifact@v4
with:
name: Linux-Canary
path: /home/runner/work/xinghai-deploy/xinghai-deploy/dist/main
if-no-files-found: error
MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build code
run: |
pip install pyinstaller
pyinstaller -F -w main.py -p core.py -p asstes/logo.png -i asstes/logo.icns --hidden-import core
- name: Publish package
uses: actions/upload-artifact@v4
with:
name: MacOS-Canary
path: /Users/runner/work/xinghai-deploy/xinghai-deploy/dist/main
if-no-files-found: error