Updated build script.
This commit is contained in:
parent
9f441f4e05
commit
2723b69931
2 changed files with 16 additions and 58 deletions
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
|
@ -1,40 +1,25 @@
|
||||||
name: CI
|
name: Build ROM
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ romhack ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_rom:
|
||||||
runs-on: ubuntu-18.04
|
name: Build ROM
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@master
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi
|
||||||
- name: Install binutils
|
- name: Build & install agbcc
|
||||||
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: |
|
run: |
|
||||||
git clone https://github.com/pret/agbcc.git
|
cd ..
|
||||||
cd agbcc
|
git clone --depth 1 https://github.com/pret/agbcc
|
||||||
|
cd agbcc
|
||||||
./build.sh
|
./build.sh
|
||||||
./install.sh ../
|
./install.sh ../pokeemerald
|
||||||
|
- name: Build ROM
|
||||||
- name: Compare
|
run: |
|
||||||
run: make -j${nproc} compare
|
make
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
27
.github/workflows/buildrom.yml
vendored
27
.github/workflows/buildrom.yml
vendored
|
@ -1,27 +0,0 @@
|
||||||
name: Build ROM
|
|
||||||
|
|
||||||
on: push
|
|
||||||
# push:
|
|
||||||
# tags:
|
|
||||||
# - 'v*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_rom:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# container:
|
|
||||||
# image: arantonitis/devkitgba
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi
|
|
||||||
- name: Build & install agbcc
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
git clone --depth 1 https://github.com/pret/agbcc
|
|
||||||
cd agbcc
|
|
||||||
./build.sh
|
|
||||||
./install.sh ../pokeemerald
|
|
||||||
- name: Build ROM
|
|
||||||
run: |
|
|
||||||
make
|
|
Loading…
Reference in a new issue