Skip to content

try build_gba

try build_gba #58

Workflow file for this run

name: Rust
on:
push:
branches: [ "main", "gba-workflow" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Install deps
# run: sudo apt-get install -y libasound2-dev
# - name: Build
# run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose
build_gba:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout the GBA toolchain
uses: actions/checkout@v4
with:
repository: felixjones/gba-toolchain
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
# components: ${{ inputs.components }}
target: thumbv4t-none-eabi
- name: Build
run: CMAKE_TOOLCHAIN_FILE=gba-toolchain/arm-gba-toolchain.cmake cargo +nightly run --no-default-features --features=gba --target=thumbv4t-none-eabi -Z build-std=core,alloc --release