-
-
Notifications
You must be signed in to change notification settings - Fork 36
76 lines (65 loc) · 1.99 KB
/
Copy pathdebug_linux.yml
File metadata and controls
76 lines (65 loc) · 1.99 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
# 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:
strategy:
fail-fast: false
matrix:
include:
- architecture: x64
runner: ubuntu-22.04
use_upx: true
runs-on: ${{ matrix.runner }}
steps:
- name: Install Tools
run: |
sudo apt-get update
sudo apt-get install -y libfuse2
- name: Checkout Repo
uses: actions/checkout@v6.0.3
- name: Setup uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Install Python
run: uv python install 3.8
- name: Sync Dependencies
run: uv sync --no-dev --locked
- name: Build
run: |
uv run deploy.py
- name: Optimize
run: |
dist="build/MCSL2.dist"
rm -rf \
"$dist/zstandard" \
"$dist/_asyncio"* \
"$dist/pyexpat"* \
"$dist/libQt5Quick.so.5" \
"$dist/libQt5Qml.so.5" \
"$dist/libQt5QmlModels.so.5"
if [ "${{ matrix.use_upx }}" = "true" ] && [ -f "$dist/MCSL2.bin" ]; then
chmod +x ./upx
./upx -9 "$dist/MCSL2.bin"
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v7.0.1
with:
name: MCSL2-Linux-${{ matrix.architecture }}
path: |
build/MCSL2.dist/**/*