summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-06-16 10:49:41 -0400
committerGitHub <noreply@github.com>2021-06-16 10:49:41 -0400
commitb15cc8eead04d70dc5493aab729b82529bc24b32 (patch)
tree92c18b1a336b5f8f3e5eb47fae05962fc1a11012 /.github/workflows
parent5acfde358a3a9a99d580f151f739545eba950001 (diff)
parent7993823ca51b539f31551f6e0cef0c84794dcd3c (diff)
Merge pull request #439 from PikalaxALT/push_symbols
Create symfiles on build
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml66
1 files changed, 57 insertions, 9 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f8ad97065..091ae69b5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,11 +7,29 @@ on:
jobs:
build:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-latest
+ env:
+ GAME_VERSION: FIRERED
+ GAME_LANGUAGE: ENGLISH
+ GAME_REVISION: 0
+ MODERN: 0
+ COMPARE: 1
steps:
- name: Checkout
uses: actions/checkout@master
+ - name: Checkout agbcc
+ uses: actions/checkout@master
+ with:
+ path: 'agbcc'
+ repository: 'pret/agbcc'
+
+ - name: Checkout symbols
+ uses: actions/checkout@master
+ with:
+ path: 'symbols'
+ ref: 'symbols'
+
- name: Install binutils
run: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
# build-essential, git, and libpng-dev are already installed
@@ -20,23 +38,39 @@ jobs:
- name: Install agbcc
run: |
- git clone https://github.com/pret/agbcc.git
- cd agbcc
./build.sh
./install.sh ../
+ working-directory: ./agbcc
- name: Compare FireRed
run: |
- make -j${nproc} compare_firered
- make -j${nproc} compare_firered_rev1
+ make -j${nproc} all syms
+
+ - name: Compare FireRed rev1
+ env:
+ GAME_REVISION: 1
+ run: |
+ make -j${nproc} all syms
- name: Compare LeafGreen
+ env:
+ GAME_VERSION: LEAFGREEN
+ run: |
+ make -j${nproc} all syms
+
+ - name: Compare LeafGreen rev1
+ env:
+ GAME_VERSION: LEAFGREEN
+ GAME_REVISION: 1
run: |
- make -j${nproc} compare_leafgreen
- make -j${nproc} compare_leafgreen_rev1
+ make -j${nproc} all syms
- - name: Modern
- run: make -j${nproc} modern
+ - name: Build Modern
+ env:
+ MODERN: 1
+ COMPARE: 0
+ run: |
+ make -j${nproc} all
- name: Webhook
if: ${{ github.event_name == 'push' }}
@@ -45,3 +79,17 @@ jobs:
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
run: sh .github/calcrom/webhook.sh pokefirered
+
+ - name: Move symfiles
+ if: ${{ github.event_name == 'push' }}
+ run: |
+ cp *.sym symbols/
+
+ - name: Update symfiles
+ if: ${{ github.event_name == 'push' }}
+ uses: EndBug/add-and-commit@v7
+ with:
+ branch: symbols
+ cwd: "./symbols"
+ add: "*.sym"
+ message: ${{ github.event.commits[0].message }}