on: push name: ci jobs: ci: runs-on: ubuntu-latest strategy: matrix: rust: - stable target: - x86_64-unknown-linux-gnu - thumbv6m-none-eabi - armv7-unknown-linux-gnueabihf - thumbv7em-none-eabihf steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: ${{ matrix.rust }} target: ${{ matrix.target }} override: true components: rustfmt, clippy - uses: actions-rs/cargo@v1 with: use-cross: true command: check - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - uses: actions-rs/cargo@v1 with: use-cross: true command: clippy args: -- -D warnings