Code style changes #950
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: build_pr | |
| on: | |
| pull_request_target: | |
| branches: [ master ] | |
| jobs: | |
| build_pr: | |
| if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| submodules: recursive | |
| - name: Install system packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y $(cat packages.txt | tr '\n' ' ') | |
| - name: Install Python packages and setup environment | |
| run: | | |
| python3 -m venv .venv | |
| . .venv/bin/activate | |
| pip3 install -r requirements.txt | |
| - name: Download IDO static recomp | |
| run: | | |
| . .venv/bin/activate | |
| python3 ./dino.py update-ido | |
| - name: Checkout baserom | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: zestydevy/dinosaur-planet-private | |
| token: ${{ secrets.PRIVATE_REPO_ACCESS }} | |
| path: baserom | |
| - name: Decrypt baserom | |
| run: echo ${{ secrets.DINOSAUR_PLANET_BASEROM }} | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom/baserom.z64.aes -out baserom.z64 | |
| - name: Extract ROM | |
| run: | | |
| . .venv/bin/activate | |
| python3 ./dino.py extract | |
| - name: Build (matching) | |
| run: | | |
| . .venv/bin/activate | |
| python3 ./dino.py configure | |
| python3 ./dino.py build | |
| - name: Build (non-matching, non-equivalent) | |
| run: | | |
| . .venv/bin/activate | |
| python3 ./dino.py configure --all-code | |
| python3 ./dino.py build --no-verify |