Expand the amount of core-only #133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Continuous Integration | |
jobs: | |
Stable: | |
name: Test - stable toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
# https://github.com/dtolnay/rust-toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Running test script | |
env: | |
DO_LINT: true | |
run: ./contrib/test.sh | |
Beta: | |
name: Test - beta toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@beta | |
- name: Running test script | |
run: ./contrib/test.sh | |
Nightly: | |
name: Test - nightly toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Running test script | |
env: | |
DO_FMT: true | |
run: ./contrib/test.sh | |
MSRV: | |
name: Test - 1.41.1 toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@1.41.1 | |
- name: Running test script | |
run: ./contrib/test.sh | |
EmbeddedWithAlloc: | |
name: no_std with alloc | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: thumbv7m-none-eabi | |
- name: Run | |
env: | |
RUSTFLAGS: "-C link-arg=-Tlink.x" | |
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel" | |
run: cd embedded/with-allocator && cargo run --target thumbv7m-none-eabi | |
EmbeddedNoAlloc: | |
name: no_std no alloc | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: thumbv7m-none-eabi | |
- name: Run | |
env: | |
RUSTFLAGS: "-C link-arg=-Tlink.x" | |
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel" | |
run: cd embedded/no-allocator && cargo run --target thumbv7m-none-eabi |