From 797a9f7535434e771b71d719042bae359194b2ef Mon Sep 17 00:00:00 2001 From: Daniel Dybing Date: Wed, 11 Mar 2026 15:19:59 +0100 Subject: [PATCH] Workflow: Simplify Windows build output and use broader artifact search --- .gitea/workflows/build.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 143fb78..72a6265 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -35,28 +35,24 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build Windows executable via Docker (Streamlined) + - name: Build Windows executable via Docker (Direct Output) run: | - # Create output directory - mkdir -p output_dist - - # 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 + # Use docker run with direct output to dist/ + # We force pyinstaller to use current directory for workpath to avoid /tmp issues docker run --rm \ -v "${{ github.workspace }}:/src" \ - -w /src \ 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 - mv tamigo-cli.exe output_dist/ || echo "EXE not found in root" - - - name: Debug - List local results + - name: Debug - List all files 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 uses: actions/upload-artifact@v3 with: name: binary-windows - path: output_dist/*.exe + path: "**/*.exe"