Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build-unbricked.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Unbricked example code

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download and extract RGBDS v1.0.0
shell: bash
run: |
set -euo pipefail

RGBDS_URL="https://github.com/gbdev/rgbds/releases/download/v1.0.0/rgbds-linux-x86_64.tar.xz"
DEST_DIR="$RUNNER_TEMP/rgbds"

mkdir -p "$DEST_DIR"
curl -L --fail --retry 3 -o "$RUNNER_TEMP/rgbds.tar.xz" "$RGBDS_URL"
tar -xJf "$RUNNER_TEMP/rgbds.tar.xz" -C "$DEST_DIR"

# Add extracted folder to PATH for later steps
echo "$DEST_DIR" >> "$GITHUB_PATH"

- name: Run build script
shell: bash
run: |
set -euo pipefail
cd unbricked
chmod +x ./build_all.sh
./build_all.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/galactic-armada/src/generated
/galactic-armada/dist/
/galactic-armada/obj/
.idea
.idea
*.gb
*.o
5 changes: 5 additions & 0 deletions unbricked/audio/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

rgbasm -o main.o main.asm
rgblink -o unbricked.gb main.o
rgbfix -v -p 0xFF unbricked.gb
File renamed without changes.
5 changes: 5 additions & 0 deletions unbricked/bcd/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

rgbasm -o main.o main.asm
rgblink -o unbricked.gb main.o
rgbfix -v -p 0xFF unbricked.gb
Loading