Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Reduce docker layers during actions to save pipeline cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Aug 4, 2020
1 parent 1926471 commit 25b3391
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions buddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,9 @@
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 \"flips-linux\" ]; then wget https://dl.smwcentral.net/11474/floating.zip; unzip floating.zip; rm -f floating.zip flips.exe license.txt src.zip boring.zip; sudo chmod +x flips-linux; fi"
- "tag=$(git describe --tags `git rev-list --tags --max-count=1`)"
- "rm -f *.bps"
- "./flips-linux -c -b ../rom/fe7-jp.gba fe7-jp-stunning-tribble.gba FEHR.bps"
- "mv FEHR.bps FEHR$tag.bps"
- "COMMIT_LOG=`git log -1 --format='%ci %H %s'`"
- "sudo github-release upload --owner laqieer --repo fe7-jp-stunning-tribble --token ${GITHUB_TOKEN} --tag \"$tag\" --name \"$tag\" --body \"$COMMIT_LOG\" FEHR$tag.bps"
- "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 \"flips-linux\" ]; then wget https://dl.smwcentral.net/11474/floating.zip; unzip floating.zip; sudo chmod +x flips-linux; fi && tag=$(git describe --tags `git rev-list --tags --max-count=1`) && ./flips-linux -c -b ../rom/fe7-jp.gba fe7-jp-stunning-tribble.gba FEHR.bps && mv FEHR.bps FEHR$tag.bps && COMMIT_LOG=`git log -1 --format='%ci %H %s'` && sudo github-release upload --owner laqieer --repo fe7-jp-stunning-tribble --token ${GITHUB_TOKEN} --tag \"$tag\" --name \"$tag\" --body \"$COMMIT_LOG\" FEHR$tag.bps && cd .. && rm -rf build"
setup_commands:
- "apt-get update && apt-get -y install unzip libgtk-3-0 libgomp1"
- "curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -"
- "sudo apt-get install -y nodejs"
- "sudo npm install -g github-release-cli"
- "apt-get update && apt-get -y install unzip libgtk-3-0 libgomp1 && curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - && sudo apt-get install -y nodejs && sudo npm install -g github-release-cli"
mount_filesystem_path: "/buddy/fe7-jp-stunning-tribble"
shell: "BASH"
trigger_condition: "ALWAYS"

0 comments on commit 25b3391

Please sign in to comment.