Replace Travis CI with Github workflow

This commit is contained in:
GriffinR
2021-03-08 03:03:53 -05:00
parent 42b93f8359
commit b2f0efc6f7
5 changed files with 55 additions and 240 deletions
+47
View File
@@ -0,0 +1,47 @@
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 FireRed
run: |
make -j${nproc} compare_firered
make -j${nproc} compare_firered_rev1
- name: Compare LeafGreen
run: |
make -j${nproc} compare_leafgreen
make -j${nproc} compare_leafgreen_rev1
- 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 pokefirered