-
-
Notifications
You must be signed in to change notification settings - Fork 56
34 lines (26 loc) · 883 Bytes
/
build-unbricked.yml
File metadata and controls
34 lines (26 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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