Pyinstaller GitHub workflow fix (#2298)

This commit is contained in:
Soxoj
2026-03-22 00:59:17 +01:00
committed by GitHub
parent e4d6b064df
commit 5da4e78092
+15
View File
@@ -11,23 +11,38 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Wine Python (not Linux) runs PyInstaller; altgraph needs pkg_resources — reinstall setuptools after all deps.
- name: Prepare requirements for Wine (setuptools last)
run: |
set -euo pipefail
cp pyinstaller/requirements.txt pyinstaller/requirements-wine.txt
{
echo ""
echo "# CI: setuptools last so pkg_resources exists for PyInstaller/altgraph in Wine"
echo "setuptools==70.0.0"
} >> pyinstaller/requirements-wine.txt
- name: PyInstaller Windows Build - name: PyInstaller Windows Build
uses: JackMcKew/pyinstaller-action-windows@main uses: JackMcKew/pyinstaller-action-windows@main
with: with:
path: pyinstaller path: pyinstaller
requirements: requirements-wine.txt
- name: Upload PyInstaller Binary to Workflow as Artifact - name: Upload PyInstaller Binary to Workflow as Artifact
if: success()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: maigret_standalone_win32 name: maigret_standalone_win32
path: pyinstaller/dist/windows path: pyinstaller/dist/windows
- name: Download PyInstaller Binary - name: Download PyInstaller Binary
if: success()
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: maigret_standalone_win32 name: maigret_standalone_win32
- name: Create New Release and Upload PyInstaller Binary to Release - name: Create New Release and Upload PyInstaller Binary to Release
if: success()
uses: ncipollo/release-action@v1.14.0 uses: ncipollo/release-action@v1.14.0
id: create_release id: create_release
with: with: