mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
|
|
- 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: |
|
|
git clone https://github.com/pret/agbcc.git
|
|
cd agbcc
|
|
./build.sh
|
|
./install.sh ../
|
|
|
|
- name: Compare
|
|
run: make -j${nproc} compare
|
|
|
|
- name: Modern
|
|
run: make -j${nproc} modern
|
|
|
|
- name: Webhook
|
|
if: ${{ github.event_name == 'push' }}
|
|
env:
|
|
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
|
|
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
|