46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Build ROM
|
|
|
|
on:
|
|
push:
|
|
branches: [ followers ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build_rom:
|
|
name: Build ROM
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
|
|
- name: Checkout syms
|
|
if: ${{ github.event_name == 'push' }}
|
|
uses: actions/checkout@master
|
|
with:
|
|
path: symbols
|
|
ref: symbols
|
|
|
|
- name: Checkout agbcc
|
|
uses: actions/checkout@master
|
|
with:
|
|
path: agbcc
|
|
repository: pret/agbcc
|
|
|
|
- name: Install binutils
|
|
run: |
|
|
sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi libpng-dev
|
|
# build-essential and git are already installed
|
|
# gcc-arm-none-eabi is only needed for the modern build
|
|
# as an alternative to dkP
|
|
|
|
- name: Install agbcc
|
|
run: |
|
|
cd ..
|
|
git clone --depth 1 https://github.com/pret/agbcc
|
|
cd agbcc
|
|
./build.sh
|
|
./install.sh ../pokeemerald
|
|
- name: Build ROM
|
|
run: |
|
|
make
|