forked from OlivOS-Team/OlivOS
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (97 loc) · 2.85 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
104
105
106
107
108
109
110
111
name: CI-Packing-all
on:
push:
branches: [ main, dev ]
jobs:
build-win64-new-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Run packing
run: |
# cp ./OlivOS/hook.py ./OlivOS/hook_bak.py
# cp ./OlivOS/hook_pack.py ./OlivOS/hook.py
uv v
uv sync --all-extras --dev --all-groups
uv build
.venv\Scripts\Activate
uv run scripts.py build
env:
OLIVOS_ENV_PACK: "1"
- name: Run artifact
run: |
mkdir OlivOS-Win
cp ./dist/OlivOS.exe ./OlivOS-win/OlivOS.exe
- name: Packing OlivOS-Win
uses: actions/upload-artifact@v3
with:
name: OlivOS-Win-origin
path: ./OlivOS-Win
- name: Ready for Packing
#run: |
# mkdir ./OlivOS-Win/lib
# curl -L https://github.com/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_windows_amd64.exe -o ./OlivOS-Win/lib/go-cqhttp.exe
# curl -L https://github.com/onebot-walle/walle-q/releases/latest/download/walle-q-i686-windows-gnu.exe -o ./OlivOS-Win/lib/walle-q.exe
run: |
mkdir ./OlivOS-Win/lib
- name: Packing OlivOS-Win-with-lib
uses: actions/upload-artifact@v3
with:
name: OlivOS-Win
path: ./OlivOS-Win
build-linux-new-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Run packing
run: |
# cp ./OlivOS/hook.py ./OlivOS/hook_bak.py
# cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py
uv v
uv sync --all-extras --dev --all-groups
uv build
source .venv/bin/activate
uv run scripts.py build
env:
OLIVOS_ENV_DEBUG: "1"
OLIVOS_ENV_PACK: "1"
- name: Run artifact
run: |
mkdir OlivOS-PKG
cp ./dist/OlivOS ./OlivOS-PKG/OlivOS
- name: Packing OlivOS-PKG
uses: actions/upload-artifact@v3
with:
name: OlivOS-Linux
path: ./OlivOS-PKG
build-macos-new-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Run packing
run: |
# cp ./OlivOS/hook.py ./OlivOS/hook_bak.py
# cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py
uv v
uv sync --all-extras --dev --all-groups
uv build
source .venv/bin/activate
uv run scripts.py build
env:
OLIVOS_ENV_DEBUG: "1"
OLIVOS_ENV_PACK: "1"
- name: Run artifact
run: |
mkdir OlivOS-PKG
cp ./dist/OlivOS ./OlivOS-PKG/OlivOS
- name: Packing OlivOS-PKG
uses: actions/upload-artifact@v3
with:
name: OlivOS-MacOS
path: ./OlivOS-PKG