Skip to content

PWD

PWD #66

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
path: gba-toolchain
- 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: 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