Skip to content

Commit 7571d6b

Browse files
committed
ci: add pipeline to run all build scripts
1 parent 51b9734 commit 7571d6b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)