-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 857 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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; ./install.sh
- 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