Files
tamigo-cli/.gitea/workflows/build.yml
Daniel Dybing 26724cd868
All checks were successful
Build Tamigo CLI / build-linux (push) Successful in 52s
Build Tamigo CLI / build-windows (push) Successful in 4s
Release Tamigo CLI / build-linux (release) Successful in 50s
Release Tamigo CLI / build-windows (release) Successful in 5s
Fix: Correct Docker build command and artifact paths for Windows
2026-03-11 12:18:38 +01:00

53 lines
1.3 KiB
YAML

name: Build Tamigo CLI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
build-linux:
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 with PyInstaller
run: |
pyinstaller --onefile --name tamigo-cli tamigo.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tamigo-cli-linux
path: dist/tamigo-cli
build-windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows executable via Docker
run: |
docker run --rm \
-v "${{ github.workspace }}:/src" \
cdrx/pyinstaller-windows \
sh -c "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tamigo-cli-windows
path: dist/tamigo-cli.exe