-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.88 KB
/
Copy pathci.yml
File metadata and controls
68 lines (55 loc) · 1.88 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install RGBDS v1.0.3
run: |
mkdir -p rgbds-bin
curl -sL https://github.com/gbdev/rgbds/releases/download/v1.0.3/rgbds-linux-x86_64.tar.xz | tar -xJ -C rgbds-bin
echo "RGBDS_DIR=$PWD/rgbds-bin/" >> "$GITHUB_ENV"
- name: Install Python deps
run: python3 -m pip install numpy pyboy
- name: Build ROM
run: make RGBDS="$RGBDS_DIR"
- name: Run test suite
run: make check
- name: Combat balance harness
run: python tests/tune_balance.py
- name: Upload ROM artifact
uses: actions/upload-artifact@v4
with:
name: pirates_folly.gb
path: pirates_folly.gb
retention-days: 14
- name: Update rolling release
if: github.event_name == 'push'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Latest build
body: |
Rolling release, rebuilt on every push to `main`.
Download `pirates_folly.gb` and open it in any Game Boy emulator.
files: pirates_folly.gb
prerelease: true
# Build against the latest RGBDS release to catch toolchain drift early.
# Advisory only: never blocks the pinned build.
build-latest-rgbds:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install latest RGBDS
run: |
mkdir -p rgbds-bin
curl -sL https://github.com/gbdev/rgbds/releases/latest/download/rgbds-linux-x86_64.tar.xz | tar -xJ -C rgbds-bin
- name: Install Python deps
run: python3 -m pip install numpy
- name: Build ROM with latest RGBDS
run: make clean && make RGBDS="$PWD/rgbds-bin/"