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:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ romhack ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
build_rom:
|
||||
name: Build ROM
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
- 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: |
|
||||
git clone https://github.com/pret/agbcc.git
|
||||
cd agbcc
|
||||
cd ..
|
||||
git clone --depth 1 https://github.com/pret/agbcc
|
||||
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
|
||||
./install.sh ../pokeemerald
|
||||
- name: Build ROM
|
||||
run: |
|
||||
make
|
||||
|
|
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