-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.14 KB
/
Copy pathbuild.yml
File metadata and controls
41 lines (31 loc) · 1.14 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
name: Build EduBot Linux
on:
push:
branches: [ "main" ]
jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: python:3.9-slim-buster
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Build Tools
run: |
echo "deb http://archive.debian.org/debian buster main" > /etc/apt/sources.list
echo "deb http://archive.debian.org/debian-security buster/updates main" >> /etc/apt/sources.list
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
apt-get update
apt-get install -y gcc g++ make binutils
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with PyInstaller
run: |
pyinstaller --noconfirm --onefile --windowed --name "EduBotLab" --add-data "web:web" --hidden-import="bottle_websocket" --hidden-import="engineio.async_drivers.threading" main.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: EduBotLab-Linux
path: dist/EduBotLab