Attempt to fix CI #12
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: [ '**' ] | |
paths-ignore: ["README.md"] | |
pull_request: | |
branches: [ '**' ] | |
paths-ignore: ["README.md"] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: '-D warnings' | |
jobs: | |
test: | |
name: Test on Rust stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo test | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- run: cargo clippy --all-features -- -D warnings | |
# Test no_std build-only | |
build-nostd: | |
name: Build on no_std target (thumbv7em-none-eabi) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
targets: thumbv7em-none-eabi | |
- uses: taiki-e/install-action@cargo-hack | |
# No default features build | |
- name: no_std / no feat | |
run: cargo build --target thumbv7em-none-eabi --release --no-default-features | |
- name: no_std / cargo hack | |
run: cargo hack build --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std |