File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Unbricked example code
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+
13+ - name : Download and extract RGBDS v1.0.0
14+ shell : bash
15+ run : |
16+ set -euo pipefail
17+
18+ RGBDS_URL="https://github.com/gbdev/rgbds/releases/download/v1.0.0/rgbds-linux-x86_64.tar.xz"
19+ DEST_DIR="$RUNNER_TEMP/rgbds"
20+
21+ mkdir -p "$DEST_DIR"
22+ curl -L --fail --retry 3 -o "$RUNNER_TEMP/rgbds.tar.xz" "$RGBDS_URL"
23+ tar -xJf "$RUNNER_TEMP/rgbds.tar.xz" -C "$DEST_DIR"
24+
25+ # Add extracted folder to PATH for later steps
26+ echo "$DEST_DIR" >> "$GITHUB_PATH"
27+
28+ - name : Run build script
29+ shell : bash
30+ run : |
31+ set -euo pipefail
32+ chmod +x ./unbricked/build_all.sh
33+ ./unbricked/build_all.sh
You can’t perform that action at this time.
0 commit comments