CI/CD: Add Gitea build workflows for Linux and Windows

This commit is contained in:
2025-12-30 18:42:32 +01:00
parent 088ad1a320
commit 8e8d8943eb
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
name: Build Linux
on: [push, pull_request]
jobs:
build:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Build Executable
run: |
pyinstaller --onefile --windowed --name TeletextEditor_Linux --paths src src/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Linux
path: dist/TeletextEditor_Linux

View File

@@ -0,0 +1,29 @@
name: Build Windows
on: [push, pull_request]
jobs:
build:
name: Build Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Build Executable
run: |
pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src src/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Windows
path: dist/TeletextEditor_Windows.exe

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
PyQt6
pyinstaller