Skip to content

Merge #55

Merge #55 #13

Workflow file for this run

name: CI
on:
push:
branches:
- staging
- trying
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.56.0, stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
- run: ./ci/test_full.sh
# try a target that doesn't have std at all
no_std:
name: No Std
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: thumbv6m-none-eabi
- run: cargo build --target thumbv6m-none-eabi --manifest-path ci/check/Cargo.toml
# This test crate is intentionally separate, because we need
# independent features for no-std. (rust-lang/cargo#2589)
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.70.0
with:
components: rustfmt
- run: cargo fmt --all --check