-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (57 loc) · 1.75 KB
/
package.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
name: Build and Release with Nuitka
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check Out
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip &&
python -m pip install -r requirements.txt
- name: Build
uses: Charles-Hello/Nuitka-Action@0.0.2
with:
nuitka-version: main
script-name: main.py
include-module: tgbot_client.startup, tortoise.backends.sqlite, apscheduler.triggers.interval, apscheduler.triggers.cron
onefile: true
output-file: tg_user
output-dir: build
- run: mv build/tg_user.exe build/window_tg_user.exe
if: matrix.os == 'windows-latest'
- run: mv build/tg_user build/linux_tg_user
if: matrix.os == 'ubuntu-20.04'
- run: mv build/tg_user build/macos_tg_user
if: matrix.os == 'macos-latest'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} Build
path: |
build/window_tg_user.exe
build/linux_tg_user
build/macos_tg_user
- name: ${{ runner.os }} Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
fail_on_unmatched_files: false
files: |
build/window_tg_user.exe
build/linux_tg_user
build/macos_tg_user