-
-
Notifications
You must be signed in to change notification settings - Fork 36
65 lines (54 loc) · 1.6 KB
/
debug_linux.yml
File metadata and controls
65 lines (54 loc) · 1.6 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
# Copyright 2024, MCSL Team, mailto:services@mcsl.com.cn
#
# Part of "MCSL2", a simple and multifunctional Minecraft server launcher.
#
# Licensed under the GNU General Public License, Version 3.0, with our
# additional agreements. (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/MCSLTeam/MCSL2/raw/master/LICENSE
#
################################################################################
name: Linux Debug Build
on: workflow_dispatch
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Install Tools
run: |
sudo apt-get install libfuse2
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
- name: Install Python 3.8
run: uv python install 3.8
- name: Sync Dependencies
shell: pwsh
run: |
rm uv.lock
uv sync --no-dev
- name: Build
run: |
uv run python -m lndl_nuitka . -y -- --disable-console
- name: Optimize
run: |
cd build
cd MCSL2.dist
ls
sudo rm libQt5Quick.so.5
sudo rm libQt5Qml.so.5
sudo rm libQt5QmlModels.so.5
../../upx -9 MCSL2.bin
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: MCSL2-Linux-x64
path: |
build/MCSL2.dist/**/*