Skip to content

Resolve https://github.com/rust-console/gba/pull/195#discussion_r1657… #284

Resolve https://github.com/rust-console/gba/pull/195#discussion_r1657…

Resolve https://github.com/rust-console/gba/pull/195#discussion_r1657… #284

Workflow file for this run

name: ci
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- { toolchain: nightly }
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust.toolchain }}
default: true
- name: Install Rust Source
run: rustup component add rust-src
- name: Install GNU Binutils
run: sudo apt-get update && sudo apt-get install binutils-arm-none-eabi
- name: Build The Examples (Link With GNU, weak compiler intrinsics)
run: cargo build --examples
- name: Check that all our features work
run: cargo build --examples --all-features
- name: Delete the .cargo/config.toml
run: rm -fr .cargo/config.toml
- name: Build The Examples (Link With LLD, strong compiler intrinsics)
run: RUSTFLAGS="-Clink-arg=-Tlinker_scripts/mono_boot.ld" cargo build --examples --target=thumbv4t-none-eabi -Zbuild-std=core
- name: Build The Crate For Host With No Default Features (build script usage simulation)
run: cargo build --no-default-features --lib