2021-03-05 02:14:29 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-08-12 00:33:10 +01:00
|
|
|
branches:
|
2021-04-03 06:26:55 +01:00
|
|
|
- master
|
2023-07-15 16:25:23 +01:00
|
|
|
- upcoming
|
2021-03-05 02:14:29 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-06-16 16:03:23 +01:00
|
|
|
runs-on: ubuntu-latest
|
2023-10-16 19:11:34 +01:00
|
|
|
container: devkitpro/devkitarm
|
2021-06-16 16:03:23 +01:00
|
|
|
env:
|
|
|
|
GAME_VERSION: EMERALD
|
|
|
|
GAME_REVISION: 0
|
|
|
|
GAME_LANGUAGE: ENGLISH
|
|
|
|
MODERN: 0
|
2021-08-12 00:33:10 +01:00
|
|
|
COMPARE: 0
|
2021-03-05 02:14:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2021-04-03 06:26:55 +01:00
|
|
|
uses: actions/checkout@v2
|
2021-03-05 02:14:29 +00:00
|
|
|
|
2021-06-16 16:03:23 +01:00
|
|
|
- name: Checkout agbcc
|
2021-08-12 00:33:10 +01:00
|
|
|
uses: actions/checkout@v2
|
2021-06-16 16:03:23 +01:00
|
|
|
with:
|
|
|
|
path: agbcc
|
|
|
|
repository: pret/agbcc
|
|
|
|
|
2021-03-05 02:14:29 +00:00
|
|
|
- name: Install binutils
|
2023-10-16 19:11:34 +01:00
|
|
|
run: sudo apt install -y build-essential libpng-dev libelf-dev
|
2021-03-05 02:14:29 +00:00
|
|
|
# build-essential, git, and libpng-dev are already installed
|
|
|
|
# gcc-arm-none-eabi is only needed for the modern build
|
|
|
|
# as an alternative to dkP
|
|
|
|
|
|
|
|
- name: Install agbcc
|
|
|
|
run: |
|
|
|
|
./build.sh
|
|
|
|
./install.sh ../
|
2021-06-16 16:03:23 +01:00
|
|
|
working-directory: agbcc
|
2021-03-05 02:14:29 +00:00
|
|
|
|
2021-04-03 06:26:55 +01:00
|
|
|
- name: Agbcc
|
2022-12-24 05:13:42 +00:00
|
|
|
run: make -j${nproc} -O all
|
2021-03-05 02:14:29 +00:00
|
|
|
|
|
|
|
- name: Modern
|
2021-06-16 16:03:23 +01:00
|
|
|
env:
|
|
|
|
MODERN: 1
|
|
|
|
COMPARE: 0
|
2022-12-24 05:13:42 +00:00
|
|
|
run: make -j${nproc} -O all
|
|
|
|
|
|
|
|
- name: Test
|
2023-05-31 14:38:37 +01:00
|
|
|
env:
|
|
|
|
TEST: 1
|
2022-12-24 05:13:42 +00:00
|
|
|
run: |
|
|
|
|
make -j${nproc} -O pokeemerald-test.elf
|
|
|
|
make -j${nproc} check
|