Files
tamigo-cli/.gitea/workflows/build.yml
Daniel Dybing 797a9f7535
All checks were successful
Build Tamigo CLI / Build Linux Binary (push) Successful in 48s
Build Tamigo CLI / Build Windows Binary (push) Successful in 4s
Workflow: Simplify Windows build output and use broader artifact search
2026-03-11 15:19:59 +01:00

59 lines
1.8 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 (Direct Output)
run: |
# Use docker run with direct output to dist/
# We force pyinstaller to use current directory for workpath to avoid /tmp issues
docker run --rm \
-v "${{ github.workspace }}:/src" \
cdrx/pyinstaller-windows \
sh -c "pip install --upgrade pyinstaller && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli --workpath ./build --distpath ./dist_windows tamigo.py"
- name: Debug - List all files
run: |
echo "Listing dist_windows folder:"
ls -R dist_windows/ || echo "dist_windows not found"
echo "Searching for any .exe in workspace:"
find . -name "*.exe"
- name: Upload Windows Artifact
uses: actions/upload-artifact@v3
with:
name: binary-windows
path: "**/*.exe"