diff options
author | Astatin <[email protected]> | 2025-06-18 17:42:11 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2025-06-18 17:42:11 +0200 |
commit | bb190c9c87424d73ceb27e2f15addc6323ae543a (patch) | |
tree | 47744009be77e2ce79b1e9c0f4f1492d37ec744a | |
parent | aa5ebbc872b3f9b93add3d2060fa47a82ab0525f (diff) |
Add action to build emulator
-rw-r--r-- | .github/workflows/rust.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..4dea65d --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,37 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Download assembler + run: wget https://github.com/AstatinChan/gameboy-asm/releases/download/latest/gbasm_linux-x86_64 + - name: Make assembler executable + run: chmod +x gbasm_linux-x86_64 + - name: Build BootROM + run: ./gbasm_linux-x86_64 assets/Astatin-bootrom.gbasm assets/dmg_boot.bin + - name: Build Emulator + run: cargo build --verbose + - name: Rename to clarify OS & architecture + run: mv target/release/emulator gb_linux-x86_64 + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + gb_linux-x86_64 |