Workflow: Revert to standard CDRX entrypoint for Windows build
Some checks failed
Build Tamigo CLI / Build Linux Binary (push) Successful in 52s
Build Tamigo CLI / Build Windows Binary (push) Failing after 5s

This commit is contained in:
Daniel Dybing
2026-03-11 15:30:48 +01:00
parent 3eb2b8319d
commit 02d4e015c7

View File

@@ -35,40 +35,33 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build Windows executable (Manual Build) - name: Build Windows executable (Standard CDRX)
run: | run: |
CONTAINER_NAME="win-builder-${{ github.run_id }}" # The cdrx image is actually quite good if we let it use its OWN entrypoint
docker rm -f $CONTAINER_NAME || true # The issue was my custom 'sh -c' was breaking its Wine environment setup
mkdir -p output_dist
# 1. Create the container with a custom build command docker run --rm \
# We upgrade pyinstaller to fix the WinError 123 bug -v "${{ github.workspace }}:/src" \
docker create --name $CONTAINER_NAME --workdir /src cdrx/pyinstaller-windows sh -c "pip install --upgrade pyinstaller && pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py" cdrx/pyinstaller-windows
# 2. Copy source code into the container # This image outputs to dist/windows/ by default
docker cp . $CONTAINER_NAME:/src if [ -f "dist/windows/tamigo-cli.exe" ]; then
cp dist/windows/tamigo-cli.exe output_dist/
elif [ -f "dist/tamigo-cli.exe" ]; then
cp dist/tamigo-cli.exe output_dist/
fi
# 3. Run the build - name: Debug - Comprehensive Search
echo "Starting Windows build inside Docker..." if: always()
docker start -a $CONTAINER_NAME
# 4. Extract results
echo "Extracting results from container..."
mkdir -p final_dist
# We copy the entire dist folder to be safe
docker cp $CONTAINER_NAME:/src/dist/. ./final_dist/ || echo "Warning: Could not copy dist folder"
# 5. Cleanup
docker rm $CONTAINER_NAME
- name: Debug - List final files
run: | run: |
echo "Contents of final_dist:" echo "Current directory tree:"
ls -R final_dist/ || echo "final_dist is empty" find . -maxdepth 3 -not -path '*/.*'
echo "Finding all .exe files in workspace:" echo "Searching for any .exe:"
find . -name "*.exe" 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: final_dist/*.exe path: "**/*.exe"