Workflow: Simplify Windows build output and use broader artifact search
All checks were successful
Build Tamigo CLI / Build Linux Binary (push) Successful in 48s
Build Tamigo CLI / Build Windows Binary (push) Successful in 4s

This commit is contained in:
Daniel Dybing
2026-03-11 15:19:59 +01:00
parent 8e4ae990f9
commit 797a9f7535

View File

@@ -35,28 +35,24 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build Windows executable via Docker (Streamlined) - name: Build Windows executable via Docker (Direct Output)
run: | run: |
# Create output directory # Use docker run with direct output to dist/
mkdir -p output_dist # We force pyinstaller to use current directory for workpath to avoid /tmp issues
# Run the build in one clean shot using volume mount for simplicity since we are on ubuntu-latest
# We override the entrypoint to run our own shell script inside Wine/Windows environment
docker run --rm \ docker run --rm \
-v "${{ github.workspace }}:/src" \ -v "${{ github.workspace }}:/src" \
-w /src \
cdrx/pyinstaller-windows \ cdrx/pyinstaller-windows \
sh -c "pip install --upgrade pyinstaller && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli --workpath /tmp/build --distpath /tmp/dist tamigo.py && cp /tmp/dist/tamigo-cli.exe /src/tamigo-cli.exe" sh -c "pip install --upgrade pyinstaller && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli --workpath ./build --distpath ./dist_windows tamigo.py"
# Move the result to our tracked folder - name: Debug - List all files
mv tamigo-cli.exe output_dist/ || echo "EXE not found in root"
- name: Debug - List local results
run: | run: |
ls -R output_dist/ || echo "output_dist not found" 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 - name: Upload Windows Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: binary-windows name: binary-windows
path: output_dist/*.exe path: "**/*.exe"