pokeemerald/.github/workflows/build.yml

70 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2021-03-05 02:14:29 +00:00
name: CI
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GAME_VERSION: EMERALD
GAME_REVISION: 0
GAME_LANGUAGE: ENGLISH
MODERN: 0
COMPARE: 1
2021-03-05 02:14:29 +00:00
steps:
- name: Checkout
uses: actions/checkout@master
- name: Checkout syms
2021-08-11 21:19:21 +00:00
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
2021-03-05 02:14:29 +00:00
- name: Install binutils
run: |
sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi libpng-dev
# build-essential and git are already installed
2021-03-05 02:14:29 +00:00
# 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
- name: Compare
run: make -j${nproc} all syms
2021-03-05 02:14:29 +00:00
- name: Modern
env:
MODERN: 1
COMPARE: 0
run: make -j${nproc} all
2021-03-05 02:14:29 +00:00
- name: Move symfiles
2021-08-11 21:19:21 +00:00
if: ${{ github.event_name == 'push' }}
run: |
cp -v *.sym symbols/
echo "SYMBOLS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
- name: Update symfiles
2021-08-11 21:19:21 +00:00
if: ${{ github.event_name == 'push' }}
uses: EndBug/add-and-commit@v7
with:
branch: symbols
cwd: "./symbols"
add: "*.sym"
message: ${{ env.SYMBOLS_COMMIT_MSG }}