Skip to content

Merge pull request #283 from lhearachel/fix-font-build #1021

Merge pull request #283 from lhearachel/fix-font-build

Merge pull request #283 from lhearachel/fix-font-build #1021

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
env:
LM_LICENSE_FILE: "${{ github.workspace }}/tools/cw/license.dat"
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: "https://i.imgur.com/38BQHdd.png"
CALCROM_DISCORD_WEBHOOK_USERNAME: "OK"
CALCROM_WEBHOOK_URL: "${{ secrets.WEBHOOKURL }}"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install Software
run: |
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y --install-recommends python3-pip ninja-build winehq-stable binutils-arm-none-eabi gcc-arm-none-eabi flex bison
pip install --user meson pyelftools
- name: Checkout Repo
uses: actions/checkout@v2
- name: Configure Repo
run: ./config.sh /var/tmp/pokeplatinum
- name: Build Repo
run: meson test -C /var/tmp/pokeplatinum
- name: Webhook
if: ${{ github.event_name == 'push' }}
env:
arm9name: /var/tmp/pokeplatinum/
run: |
.github/calcrom/webhook.sh "$CALCROM_WEBHOOK_URL"
continue-on-error: true
- name: Post error archive
if: failure()
continue-on-error: true
run: tar czf failure.tar.gz /var/tmp/pokeplatinum
- name: Post error upload
if: failure()
uses: actions/upload-artifact@v4
with:
name: pokeplatinum-failure-${{ github.run_id }}
path: failure.tar.gz
retention-days: 1
- name: Checkout xMAP
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v4
with:
path: 'xmap'
ref: 'xmap'
- name: Move xMAP
if: ${{ github.event_name == 'push' }}
run: |
mkdir -p xmap
cp /var/tmp/pokeplatinum/*.xMAP xmap/platinumus.xMAP
echo "XMAP_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
- name: Update xMAP
if: ${{ github.event_name == 'push' }}
uses: EndBug/add-and-commit@v9
with:
cwd: "./xmap"
add: "*.xMAP"
message: ${{ env.XMAP_COMMIT_MSG }}