Try building mgba-rom-test locally. #1
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: mgba-rom-test | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
pass: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
# Build mGBA ROM test | |
- run: cd tests/pass | |
- run: curl -LsSf https://github.com/mgba-emu/mgba/archive/refs/tags/0.10.3.tar.gz | tar xzf | |
- run: cd mgba | |
- run: mkdir build && cd build | |
- run: cmake .. -DUSE_LIBZIP=OFF -DBUILD_ROM_TEST=ON -DUSE_PNG=OFF | |
- run: make | |
- run: cd ../.. && cargo test | |
# - uses: felixjones/github-mgba-rom-test@v1 | |
# with: | |
# swi-call: 0x27 | |
# read-register: 'r0' | |
# rom-path: '' | |
# success-code: 0 # Pass |