Update python and images in workflow #118
Workflow file for this run
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: Python | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| jobs: | |
| pyinstaller: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ | |
| 'ubuntu-24.04', 'ubuntu-24.04-arm', | |
| 'windows-2025', 'windows-11-arm', | |
| 'macos-15-intel', 'macos-15' | |
| ] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Legendary dependencies and build tools | |
| run: pip3 install --upgrade | |
| setuptools | |
| pyinstaller | |
| requests | |
| requests_futures | |
| filelock | |
| - name: Optional dependencies (WebView) | |
| run: pip3 install --upgrade pywebview | |
| if: runner.os != 'macOS' | |
| - name: Set strip option on non-Windows | |
| id: strip | |
| run: echo "option=--strip" >> $GITHUB_OUTPUT | |
| if: runner.os != 'Windows' | |
| - name: Build | |
| working-directory: legendary | |
| run: pyinstaller | |
| --onefile | |
| --name legendary | |
| ${{ steps.strip.outputs.option }} | |
| -i ../assets/windows_icon.ico | |
| cli.py | |
| env: | |
| PYTHONOPTIMIZE: 1 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-package | |
| path: legendary/dist/* |