Remove unnecessary clone in ReadDir #220
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- thumbv7em-none-eabi | |
- thumbv6m-none-eabi # like the Cortex-M0+ | |
- x86_64-unknown-linux-gnu | |
- x86_64-pc-windows-msvc | |
steps: | |
- name: Install build dependencies | |
shell: bash | |
run: | | |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev | |
- uses: fiam/arm-none-eabi-gcc@v1 | |
with: | |
release: "9-2020-q2" | |
- name: Install rust | |
run: rustup show | |
- uses: actions/checkout@v3 | |
- name: Check | |
run: | | |
cargo check --workspace --all-targets | |
cargo check --workspace --all-targets --all-features | |
cargo check --workspace --all-targets --no-default-features | |
cargo check --workspace --all-targets --no-default-features --features serde | |
- name: Build | |
run: cargo build --workspace --release --verbose | |
- name: Run clippy | |
if: matrix.target == 'x86_64-unknown-linux-gnu' | |
run: cargo clippy --workspace --all-features --all-targets -- --deny warnings | |
- name: Check code format | |
if: matrix.target == 'x86_64-unknown-linux-gnu' | |
run: cargo fmt --all -- --check | |
- name: Run tests | |
if: matrix.target == 'x86_64-unknown-linux-gnu' | |
run: > | |
cargo test --workspace && | |
cargo test --workspace --release | |
- name: Check documentation | |
if: matrix.target == 'x86_64-unknown-linux-gnu' | |
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace |