Skip to content

Build All

Build All #80

Workflow file for this run

# Simply execute 'make' to verify things still build
name: Build All
on:
push:
branches:
- master
- 'tr_*'
# Allows running manually
workflow_dispatch:
inputs:
use-latest-translations:
required: false
default: true
description: 'Use latest translations from shared Google Docs sheet (default: true)'
# https://github.com/actions/checkout/issues/1487
# https://github.com/actions/checkout/issues/1809
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/medabots/medarot4:tr_EN
steps:
- name: List versions
run: |
git --version
python3 --version
rgbasm --version
rgblink --version
rgbgfx --version
- name: Checkout main repository
uses: actions/checkout@v4
with:
path: 'code'
- name: Checkout baserom repository
uses: actions/checkout@v4
with:
repository: ${{ secrets.BASEROM_REPOSITORY }}
ssh-key: ${{ secrets.BASEROM_KEY }}
path: 'baserom'
- name: Copy baserom into main repository
run: |
cp $GITHUB_WORKSPACE/baserom/*.gbc $GITHUB_WORKSPACE/code
- name: Get latest text from source
if: github.event.inputs.use-latest-translations == 'true'
working-directory: 'code'
env:
TRANSLATION_SHEET: sheet.xlsx
run: |
wget -q --no-check-certificate "${{ secrets.TRANSLATION_SHEET_URL_SOURCE }}" -O $TRANSLATION_SHEET
make csv_from_xlsx
- name: Make all
working-directory: 'code'
run: |
make -j all
- name: Generate BPS files
working-directory: 'code'
run: |
flips --create baserom_kabuto.gbc medarot4_kabuto.gbc medarot4kabuto-$GITHUB_RUN_NUMBER-$GITHUB_SHA.bps
flips --create baserom_kuwagata.gbc medarot4_kuwagata.gbc medarot4kuwagata-$GITHUB_RUN_NUMBER-$GITHUB_SHA.bps
- name: 'Archive BPS files'
uses: actions/upload-artifact@v4
with:
name: patch_files
path: code/*.bps
retention-days: 1
- name: Verify there are no uncommitted changes
if: github.event.inputs.use-latest-translations != 'true'
working-directory: 'code'
run: |
[ -z "$(git status --porcelain)" ] && exit 0 || exit 1