Update main.yml #12
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: Multi-OS Build | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Здесь мы указываем все три системы сразу | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: pip install pyinstaller | |
| - name: Build App | |
| run: | | |
| # Для Windows добавляем иконку, для остальных — просто собираем | |
| if ("${{ matrix.os }}" -eq "windows-latest") { | |
| pyinstaller --noconsole --onefile --icon=shadps4-emulator.ico gui_app.py | |
| } else { | |
| pyinstaller --noconsole --onefile gui_app.py | |
| } | |
| shell: pwsh | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Explorer-${{ matrix.os }} | |
| path: dist/* |