Merge #55 #13
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
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 |