Files
tamigo-cli/.gitea/workflows/release.yml
Daniel Dybing ae8a5252c7
Some checks failed
Build Tamigo CLI / build-linux (push) Successful in 52s
Build Tamigo CLI / build-windows (push) Failing after 32s
Build: Use Docker for Windows cross-compilation on Linux workers
2026-03-11 12:15:22 +01:00

43 lines
1.1 KiB
YAML

name: Release Tamigo CLI
on:
release:
types: [published]
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: |
pip install -r requirements.txt
- name: Build
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 "$(pwd):/src" \
cdrx/pyinstaller-windows \
"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/windows/tamigo-cli.exe