Login para profesor y estudiante agregados. #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |