Tweaks due to splat bump #195
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_pr | |
| on: | |
| pull_request_target: | |
| branches: [master] | |
| permissions: {} | |
| jobs: | |
| build_pr: | |
| if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - version: eu | |
| - version: us | |
| fail-fast: False | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Checkout baserom | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: mkst/sssv-private | |
| token: ${{ secrets.PRIVATE_REPO_ACCESS }} | |
| path: baserom | |
| - name: Decrypt baserom | |
| run: echo ${{ secrets.SSSV_BASEROM_US }} | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom/baserom.${{ matrix.version }}.z64.aes -out baserom.${{ matrix.version }}.z64 | |
| - name: Chown files as user 1000 | |
| run: | | |
| export USER_1000=$(getent passwd 1000 | cut -d: -f1) | |
| sudo chown -R "${USER_1000}:${USER_1000}" . | |
| - name: Perform make extract | |
| uses: docker://ghcr.io/mkst/sssv:latest | |
| with: | |
| args: make extract VERSION=${{ matrix.version }} | |
| - name: Perform make | |
| uses: docker://ghcr.io/mkst/sssv:latest | |
| with: | |
| args: make --jobs VERSION=${{ matrix.version }} | |
| # build NON_MATCHING ROM | |
| - name: Touch NON_MATCHING files | |
| uses: docker://ghcr.io/mkst/sssv:latest | |
| with: | |
| args: sh -c "grep -Rl NON_MATCHING src.${{ matrix.version }} | xargs -r touch" | |
| - name: Perform make NON_MATCHING | |
| uses: docker://ghcr.io/mkst/sssv:latest | |
| with: | |
| args: make --jobs VERSION=${{ matrix.version }} NON_MATCHING=1 |