Zip up examples and build them on agb publishing

This commit is contained in:
GBA bot 2022-01-01 20:17:56 +00:00
parent e0d3dddf63
commit d98273e3b9
3 changed files with 11 additions and 4 deletions

View file

@ -23,5 +23,9 @@ function build_rom() {
popd
}
mkdir -p examples/target
build_rom "the-purple-night" "PURPLENIGHT"
build_rom "the-hat-chooses-the-wizard" "HATWIZARD"
build_rom "the-hat-chooses-the-wizard" "HATWIZARD"
zip examples/target/examples.zip examples/*.gba

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install build tools
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi -y
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi zip -y
- name: Check out repository
uses: actions/checkout@v2
- name: Login to crates.io
@ -24,4 +24,7 @@ jobs:
env:
GITHUB_USERNAME: gwilymk
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
run: bash .github/scripts/update-template-repo.sh
run: bash .github/scripts/update-template-repo.sh
- name: Build the examples
run: bash .github/scripts/build-example-gba-files.sh

View file

@ -16,7 +16,7 @@ jobs:
- name: Set CARGO_TARGET_DIR
run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV
- name: Install build tools
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi libelf-dev -y
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi libelf-dev zip -y
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2.1.6