Sync upstream main and unify the multi-ROM runtime config #38
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: Build | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: mph-build-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| policy: | |
| name: ROM-free release policy | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check out sources | |
| uses: actions/checkout@v4 | |
| - name: Check ROM-free helper syntax | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| python -m py_compile \ | |
| tools/patch_ndsrecomp_rom_free_release.py \ | |
| tools/patch_recomp_ui_mph_multirom.py \ | |
| tools/ci/check_rom_free_release_sources.py \ | |
| tools/ci/prepare_freebios_banks.py \ | |
| tools/ci/verify-nightly-assets.py | |
| bash -n tools/package-linux-appimage.sh | |
| pwsh -NoProfile -Command ' | |
| $tokens = $null; $errors = $null | |
| [System.Management.Automation.Language.Parser]::ParseFile( | |
| (Resolve-Path "tools/package-windows-nightly.ps1"), | |
| [ref]$tokens, [ref]$errors) | Out-Null | |
| if ($errors.Count -ne 0) { | |
| Write-Error ($errors | Out-String) | |
| exit 1 | |
| } | |
| ' | |
| - name: Verify no ROM-secret release path | |
| run: python tools/ci/check_rom_free_release_sources.py | |
| windows: | |
| name: Build Windows | |
| needs: policy | |
| uses: ./.github/workflows/build-windows.yml | |
| linux: | |
| name: Build Linux | |
| needs: policy | |
| uses: ./.github/workflows/build-linux.yml |