feat(gfx): screen dressing (phase 7) #41
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install RGBDS v1.0.3 | |
| run: | | |
| mkdir -p rgbds-bin | |
| curl -sL https://github.com/gbdev/rgbds/releases/download/v1.0.3/rgbds-linux-x86_64.tar.xz | tar -xJ -C rgbds-bin | |
| echo "RGBDS_DIR=$PWD/rgbds-bin/" >> "$GITHUB_ENV" | |
| echo "RGBDS=$PWD/rgbds-bin/" >> "$GITHUB_ENV" | |
| - name: Install Python deps | |
| run: python3 -m pip install numpy pyboy | |
| - name: Build ROM | |
| run: make | |
| - name: Run test suite | |
| run: make check | |
| - name: Combat balance harness | |
| run: python tests/tune_balance.py | |
| - name: Upload ROM artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pirates_folly.gb | |
| path: pirates_folly.gb | |
| retention-days: 14 | |
| - name: Update rolling release | |
| if: github.event_name == 'push' | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| tag_name: latest | |
| name: Latest build | |
| body: | | |
| Rolling release, rebuilt on every push to `main`. | |
| Download `pirates_folly.gb` and open it in any Game Boy emulator. | |
| files: pirates_folly.gb | |
| prerelease: true | |
| # Build against the latest RGBDS release to catch toolchain drift early. | |
| # Advisory only: never blocks the pinned build. | |
| build-latest-rgbds: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install latest RGBDS | |
| run: | | |
| mkdir -p rgbds-bin | |
| curl -sL https://github.com/gbdev/rgbds/releases/latest/download/rgbds-linux-x86_64.tar.xz | tar -xJ -C rgbds-bin | |
| - name: Install Python deps | |
| run: python3 -m pip install numpy | |
| - name: Build ROM with latest RGBDS | |
| run: make clean && make RGBDS="$PWD/rgbds-bin/" |