Skip to content

Commit

Permalink
gbafix
Browse files Browse the repository at this point in the history
  • Loading branch information
jturcotte authored Oct 29, 2024
1 parent 5751bef commit a266b76
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ jobs:
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@nightly
with:
# toolchain: nightly
components: rust-src
# target: thumbv4t-none-eabi

# - name: Add cargo nightly target
# run:
- name: Install gbafix
run: cargo install gbafix

- name: Build
run: CMAKE_TOOLCHAIN_FILE=$PWD/gba-toolchain/cmake/gba.toolchain.cmake cargo +nightly run --no-default-features --features=gba --target=thumbv4t-none-eabi -Z build-std=core,alloc --release
run: CMAKE_TOOLCHAIN_FILE=$PWD/gba-toolchain/cmake/gba.toolchain.cmake cargo +nightly build --no-default-features --features=gba --target=thumbv4t-none-eabi -Z build-std=core,alloc --release

- name: gbafix
run: arm-none-eabi-objcopy -v -O binary target/thumbv4t-none-eabi/release/chiptrack chiptrack-dev.gba && gbafix chiptrack-dev.gba

- uses: actions/upload-artifact@v4
with:
name: chiptrack-dev.gba
path: chiptrack-dev.gba

0 comments on commit a266b76

Please sign in to comment.