Workflow: Use robust docker cp method for Windows builds to fix volume mount issues
Some checks failed
Build Tamigo CLI / Build Linux Binary (push) Successful in 50s
Build Tamigo CLI / Build Windows Binary (push) Failing after 15s

This commit is contained in:
Daniel Dybing
2026-03-11 13:56:11 +01:00
parent 2d910949ad
commit 411a2ae164
2 changed files with 21 additions and 10 deletions

View File

@@ -40,12 +40,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build Windows executable via Docker
- name: Build Windows executable via Docker (Robust)
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"
# Create a container but don't start it yet
docker create --name builder cdrx/pyinstaller-windows sh -c "cd /src && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
# Copy source code into the container
docker cp . builder:/src
# Start the container and wait for it to finish
docker start -a builder
# Copy the results back to the runner
docker cp builder:/src/dist .
# Clean up
docker rm builder
- name: Debug - List output files
run: ls -R dist/