Workflow: Simplify Windows Docker build by using image defaults
Some checks failed
Build Tamigo CLI / Build Linux Binary (push) Successful in 50s
Build Tamigo CLI / Build Windows Binary (push) Failing after 3s

This commit is contained in:
Daniel Dybing
2026-03-11 14:13:03 +01:00
parent b156f203ba
commit 334ceae3ea
2 changed files with 7 additions and 6 deletions

View File

@@ -40,15 +40,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build Windows executable via Docker (Modern)
- name: Build Windows executable via Docker (Stable)
run: |
# Use a modern Python 3.12 image for Windows cross-compilation
docker create --name builder --entrypoint /bin/sh tobix/pyinstaller-windows:py312 -c "pip install --upgrade pip && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
# Use a standard Wine-based PyInstaller image
docker create --name builder cdrx/pyinstaller-windows
# Copy source code into the container
docker cp . builder:/src
# Start the container and wait
# Run the build using the image's internal logic but specifying our requirements
# Most of these images default to running 'pyinstaller' on the /src folder
docker start -a builder
# Copy the results back