Files
tamigo-cli/.gitea/workflows/build.yml
Daniel Dybing f30f06ea13
All checks were successful
Build Tamigo CLI / Build Linux Binary (push) Successful in 51s
Build Tamigo CLI / Build Windows Binary (push) Successful in 5s
Workflow: Simplify Windows build and fix artifact path
2026-03-11 14:53:39 +01:00

55 lines
1.6 KiB
YAML

name: Build Tamigo CLI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
build-linux:
name: Build Linux Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
run: pyinstaller --onefile --name tamigo-cli tamigo.py
- name: Upload Linux Artifact
uses: actions/upload-artifact@v3
with:
name: binary-linux
path: dist/tamigo-cli
build-windows:
name: Build Windows Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows executable via Docker
run: |
# Use a very stable Wine+Python image
# We don't name the container to avoid conflicts, just use the image directly
docker run --rm \
-v "${{ github.workspace }}:/src" \
-w /src \
cdrx/pyinstaller-windows \
sh -c "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
- name: Debug - List output files
run: ls -R dist/ || echo "Dist folder not found"
- name: Upload Windows Artifact
uses: actions/upload-artifact@v3
with:
name: binary-windows
path: dist/windows/*.exe