This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buddy.yml
24 lines (24 loc) · 1.68 KB
/
buddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- pipeline: "Release"
on: "EVENT"
events:
- type: "PUSH"
refs:
- "refs/tags/*"
priority: "NORMAL"
target_site_url: "https://github.com/laqieer/FEHR"
auto_clear_cache: true
fail_on_prepare_env_warning: true
trigger_condition: "ON_CHANGE"
actions:
- action: "Release"
type: "BUILD"
working_directory: "/buddy/FEHR"
docker_image_name: "devkitpro/devkitarm"
docker_image_tag: "latest"
execute_commands:
- "if [ ! -d \"cmake-3.16.4-Linux-x86_64\" ]; then wget https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.tar.gz; tar -zxvf cmake-3.16.4-Linux-x86_64.tar.gz; rm -f cmake-3.16.4-Linux-x86_64.tar.gz; fi && PATH=`pwd`/cmake-3.16.4-Linux-x86_64/bin:$PATH ./configure && cd build && make && if [ ! -f \"../tool/flips-linux\" ]; then wget https://dl.smwcentral.net/11474/floating.zip; unzip floating.zip; mv flips-linux ../tool/; sudo chmod +x ../tool/flips-linux; fi && tag=$(git describe --tags `git rev-list --tags --max-count=1`) && ../tool/flips-linux -c -b ../rom/fe7-jp.gba FEHR.gba FEHR.bps && mv FEHR.bps FEHR$tag.bps && gh auth login --with-token < ../token && gh release create $tag FEHR$tag.bps -R laqieer/FEHR -t $tag && cd .. && rm -rf build"
setup_commands:
- "sudo apt update && sudo apt-get -y install dirmngr && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 23F3D4EA75716059 && sudo apt -y install software-properties-common apt-transport-https && sudo apt-add-repository https://cli.github.com/packages && sudo apt update && sudo apt -y install gh unzip libgtk-3-0 libgomp1"
mount_filesystem_path: "/buddy/FEHR"
shell: "BASH"
trigger_condition: "ALWAYS"