diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..003b4ac --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +name: main + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Version + run: rustc --version + - name: Build + run: cargo rustc --verbose -- -D warnings + + + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name : Clippy + run: cargo clippy --all-features -- -D warnings + + + format-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run rustfmt + run: cargo fmt + + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Unit tests + run: cargo test diff --git a/README.md b/README.md index ca3ecc4..c9b53b6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # supposedly some ~~forth implementation~~ gameboy color emulator + +## Links + +### gameboy +* https://www.copetti.org/writings/consoles/game-boy/ +* https://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html +* https://gbdev.io/pandocs/ +* https://rylev.github.io/DMG-01/public/book/cpu/introduction.html +* http://z80.info/decoding.htm + diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..778ebb7 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "1.72.1" +components = [ "rustfmt", "rustc-dev" , "clippy"] +profile = "minimal"