Release 1.0 #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PyInstaller Build Windows | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| pyinstaller-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: 'pip' | |
| - name: Cache GTK4 | |
| id: cache-gtk4 | |
| uses: actions/cache@v5 | |
| with: | |
| path: C:\gtk | |
| key: Gvsbuild_2026.2.0 | |
| - name: Download GTK4 Gvsbuild zip | |
| if: steps.cache-gtk4.outputs.cache-hit != 'true' | |
| run: Start-BitsTransfer -Source https://github.com/wingtk/gvsbuild/releases/download/2026.2.0/GTK4_Gvsbuild_2026.2.0_x64.zip -Destination Gvsbuild.zip | |
| - name: Extract Gvsbuild zip | |
| if: steps.cache-gtk4.outputs.cache-hit != 'true' | |
| run: Expand-Archive -Path Gvsbuild.zip -DestinationPath C:\gtk -Force | |
| - name: Add GTK bin to PATH | |
| run: echo "C:\gtk\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH | |
| - name: Install PyGObject wheel | |
| run: pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) (Resolve-Path C:\gtk\wheels\pycairo*.whl) | |
| - name: Install PyInstaller | |
| run: pip install pyinstaller | |
| - name: Build YAFI via Pip | |
| run: pip install . | |
| - name: Build with PyInstaller (ZIP) | |
| run: python -m PyInstaller yafi.spec | |
| working-directory: pyinstaller | |
| - name: Upload PyInstaller Artifact (ZIP) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| path: pyinstaller/dist/YAFI/* | |
| name: yafi-windows-${{ github.sha }} | |
| - name: Build with PyInstaller (Standalone) | |
| run: python -m PyInstaller yafi.spec --noconfirm -- --onefile | |
| working-directory: pyinstaller | |
| - name: Upload PyInstaller Artifact (Standalone) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| path: pyinstaller/dist/YAFI.exe | |
| name: yafi-windows-standalone-${{ github.sha }} |