forked from Teahouse-Studios/akari-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (70 loc) · 2.01 KB
/
Copy pathbinary-build.yml
File metadata and controls
82 lines (70 loc) · 2.01 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
name: Binary Build Nightly x64 Executables (3:00, UTC+8)
permissions:
contents: read
on:
schedule:
- cron: "00 19 * * *"
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check-out repository
uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Dependencies
run: |
uv export --no-hashes --output-file=requirements.txt
uv pip sync requirements.txt --system
uv run playwright install --with-deps chromium
uv run python core/scripts/config_generate.py
- name: Build Wrapper Executable
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: bot.py
mode: onefile
output-dir: wrapper-build
include-plugin-directory: |
modules
bots
include-package-data: |
langconv
emoji
akari_bot_webrender
akari_bot_webui
fake_http_header
limits
discord
include-package: |
tortoise
fake_http_header
asyncmy
discord
clang: ${{ matrix.os != 'windows-latest' }}
- name: Copy Assets
run: |
python .github/scripts/build_copy_files.py
- name: Write version file
shell: bash
run: |
mkdir -p assets/private/default
echo "nightly-v$(date +'%Y%m%d')" > assets/private/default/.version
cat assets/private/default/.version
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }} Build
path: |
output/**