-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 911 Bytes
/
build-linux.yml
File metadata and controls
40 lines (32 loc) · 911 Bytes
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
name: Build self-contained binary (Linux)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Python
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip python3-venv
- name: Install Dependencies
run: |
cd server
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Compile with PyInstaller
run: |
cd server
python3 -m pip install pyinstaller
pyinstaller pyinstaller.spec
- name: Zip the Executable
run: |
cd server
zip -r dist.zip dist
- name: Upload Executable
uses: actions/upload-artifact@v4
with:
name: Build-Linux
path: server/dist.zip