From 8e8d8943ebac2fa788f8a1dea72ca8d27018967e Mon Sep 17 00:00:00 2001 From: Daniel Dybing Date: Tue, 30 Dec 2025 18:42:32 +0100 Subject: [PATCH] CI/CD: Add Gitea build workflows for Linux and Windows --- .gitea/workflows/build-linux.yaml | 29 +++++++++++++++++++++++++++++ .gitea/workflows/build-windows.yaml | 29 +++++++++++++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 .gitea/workflows/build-linux.yaml create mode 100644 .gitea/workflows/build-windows.yaml create mode 100644 requirements.txt diff --git a/.gitea/workflows/build-linux.yaml b/.gitea/workflows/build-linux.yaml new file mode 100644 index 0000000..8e7fd3a --- /dev/null +++ b/.gitea/workflows/build-linux.yaml @@ -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 diff --git a/.gitea/workflows/build-windows.yaml b/.gitea/workflows/build-windows.yaml new file mode 100644 index 0000000..5adebef --- /dev/null +++ b/.gitea/workflows/build-windows.yaml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7e40a3b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +PyQt6 +pyinstaller