Author SHA1 Message Date
Daniel Dybing eec2842e77 fix(ci): update runner container options to enable public DNS resolution
Build and Release / Build Linux (push) Successful in 1m59s
Build and Release / Build Windows (push) Successful in 4m25s
Build and Release / Create Release (push) Skipped
2026-08-03 23:58:37 +02:00
Daniel Dybing c4b8304764 chore(ci): clean up workflow file
Build and Release / Build Linux (push) Failing after 2s
Build and Release / Build Windows (push) Failing after 1s
Build and Release / Create Release (push) Has been skipped
2026-08-03 23:57:01 +02:00
Daniel Dybing cab3d837b5 fix(ci): pass volume option to docker create to fix /var/run/act mount
Build and Release / Build Linux (push) Failing after 0s
Build and Release / Build Windows (push) Failing after 0s
Build and Release / Create Release (push) Has been skipped
2026-08-03 23:55:50 +02:00
Daniel Dybing 0ad6fc5f59 fix(ci): mount /var/run/act to bypass Docker path escape check
Build and Release / Build Linux (push) Failing after 1s
Build and Release / Build Windows (push) Failing after 1s
Build and Release / Create Release (push) Has been skipped
2026-08-03 23:55:12 +02:00
Daniel Dybing 3c2bed3ac5 docs: improve base command comment in build script
Build and Release / Build Linux (push) Failing after 1s
Build and Release / Build Windows (push) Failing after 1s
Build and Release / Create Release (push) Has been skipped
2026-08-03 23:53:59 +02:00
Daniel Dybing 6cf47d6d34 feat(ci): unify build and add automatic releases on tag push
Build and Release / Build Linux (push) Failing after 1s
Build and Release / Build Windows (push) Failing after 1s
Build and Release / Create Release (push) Has been skipped
2026-08-03 23:49:04 +02:00
4 changed files with 123 additions and 86 deletions
+117
View File
@@ -0,0 +1,117 @@
name: Build and Release
on:
push:
branches: [ "main", "dev" ]
tags: [ "v*" ]
pull_request:
branches: [ "main", "dev" ]
permissions:
contents: write
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xinput0 \
libxcb-xfixes0 \
libxcb-shape0 \
libgl1 \
libegl1 \
libdbus-1-3 \
libx11-xcb1
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Executable
run: |
python build_app.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Linux
path: dist/TeletextEditor_Linux
build-windows:
name: Build Windows
runs-on: ubuntu-latest
container:
image: tobix/pywine:3.10
steps:
- name: Install Node.js
run: |
apt-get clean
apt-get update
apt-get install -y --fix-missing nodejs npm
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
wine python -m pip install --upgrade pip
wine pip install -r requirements.txt
- name: Build Executable
run: |
wine python build_app.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Windows
path: dist/TeletextEditor_Windows.exe
release:
name: Create Release
needs: [build-linux, build-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download Linux Artifact
uses: actions/download-artifact@v3
with:
name: TeletextEditor-Linux
path: dist
- name: Download Windows Artifact
uses: actions/download-artifact@v3
with:
name: TeletextEditor-Windows
path: dist
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/TeletextEditor_Linux
dist/TeletextEditor_Windows.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-49
View File
@@ -1,49 +0,0 @@
name: Build Linux
on: [push, pull_request]
jobs:
build:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xinput0 \
libxcb-xfixes0 \
libxcb-shape0 \
libgl1 \
libegl1 \
libdbus-1-3 \
libx11-xcb1
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Executable
run: |
pyinstaller --onefile --windowed --name TeletextEditor_Linux --paths src --add-data "app_icon.png:." src/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Linux
path: dist/TeletextEditor_Linux
-33
View File
@@ -1,33 +0,0 @@
name: Build Windows
on: [push, pull_request]
jobs:
build:
name: Build Windows
runs-on: ubuntu-latest
container:
image: tobix/pywine:3.10
steps:
- name: Install Node.js
run: |
apt-get clean
apt-get update
apt-get install -y --fix-missing nodejs npm
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
wine python -m pip install --upgrade pip
wine pip install -r requirements.txt
- name: Build Executable
run: |
wine pyinstaller --onefile --windowed --hidden-import=pkgutil --hidden-import=PyQt6.sip --collect-all PyQt6 --name TeletextEditor_Windows.exe --paths src --add-data "app_icon.png;." --icon=app_icon.ico src/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Windows
path: dist/TeletextEditor_Windows.exe
+6 -4
View File
@@ -11,9 +11,11 @@ def clean_build_dirs():
print(f"Cleaning {d}...") print(f"Cleaning {d}...")
shutil.rmtree(d) shutil.rmtree(d)
spec_file = "TeletextEditor_Linux.spec" if platform.system() == "Linux" else "TeletextEditor_Windows.spec" for f in os.listdir("."):
if os.path.exists(spec_file): if f.endswith(".spec"):
os.remove(spec_file) print(f"Removing {f}...")
os.remove(f)
def build(): def build():
system = platform.system() system = platform.system()
@@ -22,7 +24,7 @@ def build():
# Determine separator for --add-data # Determine separator for --add-data
sep = ";" if system == "Windows" else ":" sep = ";" if system == "Windows" else ":"
# Base command # Base PyInstaller command configuration for Linux and Windows builds
base_cmd = [ base_cmd = [
sys.executable, "-m", "PyInstaller", sys.executable, "-m", "PyInstaller",
"--onefile", "--onefile",