mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 01:21:34 +11:00
Zip up examples and build them on agb publishing
This commit is contained in:
parent
e0d3dddf63
commit
d98273e3b9
6
.github/scripts/build-example-gba-files.sh
vendored
6
.github/scripts/build-example-gba-files.sh
vendored
|
@ -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
|
7
.github/workflows/publish-agb.yml
vendored
7
.github/workflows/publish-agb.yml
vendored
|
@ -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
|
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue