2021-03-05 03:14:29 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-06-16 17:03:23 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
GAME_VERSION: EMERALD
|
|
|
|
GAME_REVISION: 0
|
|
|
|
GAME_LANGUAGE: ENGLISH
|
|
|
|
MODERN: 0
|
|
|
|
COMPARE: 1
|
2021-03-05 03:14:29 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
2021-06-16 17:03:23 +02:00
|
|
|
- name: Checkout syms
|
2021-08-11 23:19:21 +02:00
|
|
|
if: ${{ github.event_name == 'push' }}
|
2021-06-16 17:03:23 +02:00
|
|
|
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 03:14:29 +01:00
|
|
|
- name: Install binutils
|
|
|
|
run: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
|
|
|
|
# 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 17:03:23 +02:00
|
|
|
working-directory: agbcc
|
2021-03-05 03:14:29 +01:00
|
|
|
|
|
|
|
- name: Compare
|
2021-06-16 17:03:23 +02:00
|
|
|
run: make -j${nproc} all syms
|
2021-03-05 03:14:29 +01:00
|
|
|
|
|
|
|
- name: Modern
|
2021-06-16 17:03:23 +02:00
|
|
|
env:
|
|
|
|
MODERN: 1
|
|
|
|
COMPARE: 0
|
|
|
|
run: make -j${nproc} all
|
2021-03-05 03:14:29 +01:00
|
|
|
|
|
|
|
- name: Webhook
|
2021-08-11 23:09:03 +02:00
|
|
|
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
|
2021-03-08 04:40:09 +01:00
|
|
|
env:
|
|
|
|
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
|
|
|
|
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
|
|
|
|
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
|
2021-03-05 03:14:29 +01:00
|
|
|
run: sh .github/calcrom/webhook.sh pokeemerald
|
2021-06-16 17:03:23 +02:00
|
|
|
|
|
|
|
- name: Move symfiles
|
2021-08-11 23:19:21 +02:00
|
|
|
if: ${{ github.event_name == 'push' }}
|
2021-06-16 17:03:23 +02:00
|
|
|
run: |
|
|
|
|
cp -v *.sym symbols/
|
2021-08-11 23:09:03 +02:00
|
|
|
echo "SYMBOLS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
|
2021-06-16 17:03:23 +02:00
|
|
|
|
|
|
|
- name: Update symfiles
|
2021-08-11 23:19:21 +02:00
|
|
|
if: ${{ github.event_name == 'push' }}
|
2021-06-16 17:03:23 +02:00
|
|
|
uses: EndBug/add-and-commit@v7
|
|
|
|
with:
|
|
|
|
branch: symbols
|
|
|
|
cwd: "./symbols"
|
|
|
|
add: "*.sym"
|
2021-08-11 23:09:03 +02:00
|
|
|
message: ${{ env.SYMBOLS_COMMIT_MSG }}
|