Seperated Text from script Battle Frontier #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Checkout syms | |
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 | |
- 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 ../ | |
working-directory: agbcc | |
- name: Compare | |
run: make -j${nproc} all syms | |
- name: Modern | |
env: | |
MODERN: 1 | |
COMPARE: 0 | |
run: make -j${nproc} all | |
- name: French Compare | |
run: make -j${nproc} fr # Once all assets are ready, use compare_fr instead | |
- name: French Modern | |
env: | |
MODERN: 1 | |
COMPARE: 0 | |
run: make -j${nproc} modern_fr | |
- name: Italian Compare | |
run: make -j${nproc} it # Once all assets are ready, use compare_it instead | |
- name: Italian Modern | |
env: | |
MODERN: 1 | |
COMPARE: 0 | |
run: make -j${nproc} modern_it | |
- name: Move symfiles | |
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 | |
if: ${{ github.event_name == 'push' }} | |
uses: EndBug/add-and-commit@v7 | |
with: | |
branch: symbols | |
cwd: "./symbols" | |
add: "*.sym" | |
message: ${{ env.SYMBOLS_COMMIT_MSG }} |