Run test roms #423
Workflow file for this run
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: main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install rgbds | |
run: wget "https://github.com/gbdev/rgbds/releases/download/v0.8.0/rgbds-0.8.0-linux-x86_64.tar.xz"; mkdir rgbds; mv rgbds-0.8.0-linux-x86_64.tar.xz rgbds; cd rgbds; tar -xvf rgbds-0.8.0-linux-x86_64.tar.xz; sudo ./install.sh | |
- name: Install wla_dx | |
run: git clone "https://github.com/vhelin/wla-dx.git"; cd wla-dx; cmake -G "Unix Makefiles" .; make; make install | |
- name: check repo | |
run: cd third_party/mooneye-test-suite; make; tree . | |
- uses: Swatinem/rust-cache@v2 | |
- name: Version | |
run: rustc --version | |
- name: Run rustfmt | |
run: cargo fmt --check | |
- name: Unit tests | |
run: cargo test -- --nocapture | |
- name : Clippy | |
run: cargo clippy --all-features |