summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-15 10:27:16 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-15 10:27:16 -0400
commit250b53f85cecb7c46a2827272e868153d88f98fc (patch)
treefde47340376b1ff448735191915405b649e59134 /.github/workflows
parent5acfde358a3a9a99d580f151f739545eba950001 (diff)
Create symfiles on build
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml31
1 files changed, 28 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f8ad97065..351d475f6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,11 +7,23 @@ on:
jobs:
build:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-latest
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,10 +32,9 @@ 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: |
@@ -45,3 +56,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 }}