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
|
2021-08-12 00:33:10 +01:00
|
|
|
COMPARE: 0
|
2024-01-29 16:19:01 +00:00
|
|
|
UNUSED_ERROR: 1
|
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
|
|
|
|
|
|
|
- name: Install binutils
|
2023-11-05 21:46:22 +00:00
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
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
|
|
|
|
|
2024-08-11 21:06:33 +01:00
|
|
|
- name: ROM
|
2021-06-16 16:03:23 +01:00
|
|
|
env:
|
|
|
|
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: |
|
2023-10-25 11:51:12 +01:00
|
|
|
make -j${nproc} -O pokeemerald-test.elf
|
2022-12-24 05:13:42 +00:00
|
|
|
make -j${nproc} check
|