-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.05 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
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: >
mkdir rgbds;
wget "https://github.com/gbdev/rgbds/releases/download/v0.8.0/rgbds-0.8.0-linux-x86_64.tar.xz" -P rgdbs;
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 -j8;
sudo 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