diff options
| author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2021-06-18 13:03:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-18 13:03:54 -0400 |
| commit | 182df7c10101dbb215996dc140ba536fda9c46ba (patch) | |
| tree | c76c3929f4d938dbc87bc65e6b15266a9e476850 /.github/workflows | |
| parent | 780da6bfd08b5401a7e11f1e0d38e377f2fab3dd (diff) | |
| parent | 6ca73737cf5142962e8c27d1b6750158c60676c6 (diff) | |
Merge pull request #1465 from PikalaxALT/push_symbols
Port symfile implementation from Ruby, FireRed
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 822b386ea..de3a35c40 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: EMERALD + GAME_REVISION: 0 + GAME_LANGUAGE: ENGLISH + MODERN: 0 + COMPARE: 1 steps: - name: Checkout uses: actions/checkout@master + - name: Checkout syms + 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 # build-essential, git, and libpng-dev are already installed @@ -20,16 +38,18 @@ jobs: - name: Install agbcc run: | - git clone https://github.com/pret/agbcc.git - cd agbcc ./build.sh ./install.sh ../ + working-directory: agbcc - name: Compare - run: make -j${nproc} compare + run: make -j${nproc} all syms - name: Modern - run: make -j${nproc} modern + env: + MODERN: 1 + COMPARE: 0 + run: make -j${nproc} all - name: Webhook if: ${{ github.event_name == 'push' }} @@ -38,3 +58,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 pokeemerald + + - name: Move symfiles + if: ${{ github.event_name == 'push' }} + run: | + cp -v *.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 }} |
