sovereignx/.github/workflows/build.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-05 02:14:29 +00:00
name: CI
on:
push:
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:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
env:
GAME_VERSION: EMERALD
GAME_REVISION: 0
GAME_LANGUAGE: ENGLISH
MODERN: 0
COMPARE: 0
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: Checkout agbcc
uses: actions/checkout@v2
with:
path: agbcc
repository: pret/agbcc
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
- name: Install agbcc
run: |
./build.sh
./install.sh ../
working-directory: agbcc
2021-03-05 02:14:29 +00:00
2021-04-03 06:26:55 +01:00
- name: Agbcc
2023-10-24 13:31:03 +01:00
env:
MODERN: 0
COMPARE: 0
run: make -j${nproc} -O all
2021-03-05 02:14:29 +00:00
- name: Modern
env:
MODERN: 1
COMPARE: 0
run: make -j${nproc} -O all
- name: Test
env:
2023-10-24 13:31:03 +01:00
MODERN: 1
TEST: 1
run: |
make -j${nproc} -O pokeemerald-test.elf
make -j${nproc} check