Workflow: Add binutils to local Windows builder to provide objdump
All checks were successful
Build Tamigo CLI / Build Linux Binary (push) Successful in 51s
Build Tamigo CLI / Build Windows Binary (push) Successful in 3m4s

This commit is contained in:
Daniel Dybing
2026-03-11 16:00:31 +01:00
parent fd8f7a13d5
commit 6685db8063

View File

@@ -37,18 +37,21 @@ jobs:
- name: Build Windows executable (Self-Built Environment)
run: |
# 1. Create a local Dockerfile
# 1. Create a local Dockerfile with ALL necessary tools
cat <<EOF > Dockerfile.win
FROM python:3.10-slim
RUN apt-get update && apt-get install -y wine binutils-mingw-w64-x86-64 && apt-get clean
# objdump is in binutils, wine-tools/binutils-mingw are needed for cross-compiling
RUN apt-get update && \
apt-get install -y binutils wine binutils-mingw-w64-x86-64 && \
apt-get clean
RUN python -m pip install --upgrade pip pyinstaller requests questionary rich python-dotenv
WORKDIR /src
EOF
# 2. Build local image
# 2. Build local image (force fresh build)
docker build -t local-win-builder -f Dockerfile.win .
# 3. Use unique container name (Fixed shell variable expansion)
# 3. Use unique container name
CONTAINER_NAME="win-build-${{ github.run_id }}"
docker create --name $CONTAINER_NAME local-win-builder sh -c "pyinstaller --onefile --name tamigo-cli tamigo.py"