Made build script work for all branches.
This commit is contained in:
parent
8dd1811ce5
commit
f0587b3d75
2 changed files with 11 additions and 7 deletions
15
.github/workflows/buildrom.yml
vendored
15
.github/workflows/buildrom.yml
vendored
|
@ -1,17 +1,20 @@
|
|||
name: Build ROM
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
on: push
|
||||
# push:
|
||||
# tags:
|
||||
# - 'v*'
|
||||
|
||||
jobs:
|
||||
build_rom:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: arantonitis/devkitgba
|
||||
# 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 ..
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
set +v
|
||||
set -e
|
||||
git_branch=$(git branch --show-current)
|
||||
git push build --force # ssh://merrbot:/home/ubuntu/pokeemerald
|
||||
ssh merrbot "source /etc/profile.d/devkit-env.sh && cd pokeemerald && git reset --hard && git checkout dexnav && make"
|
||||
ssh merrbot "cd pokeemerald && git reset --hard && git checkout $git_branch && make"
|
||||
scp merrbot:pokeemerald/pokeemerald.gba romhack.gba
|
||||
|
|
Loading…
Reference in a new issue