Add GreemDev/Ryujinx Dram Size Compatibility Update UltraCam #491
This file contains 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: Build multiplatform | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Release git tag | |
type: string | |
required: true | |
push: | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows | |
os: windows-latest | |
artifactsPath: ./src/dist/*.exe | |
- name: Linux | |
os: ubuntu-20.04 | |
artifactsPath: ./src/dist/*.AppImage | |
- name: MacOS Intel | |
os: macos-13 | |
artifactsPath: ./src/dist/*.zip | |
- name: MacOS Silicon | |
os: macos-latest | |
artifactsPath: ./src/dist/*.zip | |
- name: Windows_dir | |
os: windows-latest | |
artifactsPath: ./src/dist/*.zip | |
- name: Linux_dir | |
os: ubuntu-20.04 | |
artifactsPath: ./src/dist/*.zip | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12.0" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests patool screeninfo packaging wmi GPUtil psutil pyperclip pyinstaller https://github.com/MaxLastBreath/ttkbootstrapFIX/zipball/master | |
- name: Build ${{ matrix.name }} | |
run: | | |
cd ./src/ | |
python ./compile_onedir.py | |
if: ${{ endsWith(matrix.name, 'dir') || startsWith(matrix.name, 'MacOS') }} | |
- name: Build ${{ matrix.name }} | |
run: | | |
cd ./src/ | |
python ./compile.py | |
if: ${{ !endsWith(matrix.name, 'dir') && !startsWith(matrix.name, 'MacOS') }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts-${{ matrix.name }} | |
path: ./src/dist | |
- name: Publish release | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{ matrix.artifactsPath }} | |
tag: ${{ inputs.tag }} | |
name: TOTK Optimizer ${{ inputs.tag }} | |
allowUpdates: true | |
artifactErrorsFailBuild: false | |
prerelease: true | |
token: ${{ secrets.GITHUB_TOKEN }} |