From bb190c9c87424d73ceb27e2f15addc6323ae543a Mon Sep 17 00:00:00 2001 From: Astatin Date: Wed, 18 Jun 2025 17:42:11 +0200 Subject: Add action to build emulator --- .github/workflows/rust.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/rust.yml 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 -- cgit v1.2.3-70-g09d2