Workflow: Simplify Windows build output and use broader artifact search
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user