Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
quality:
runs-on: ubuntu-latest
name: cargo {fmt, clippy}
strategy:
fail-fast: false
matrix:
target: [thumbv6m-none-eabi]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -25,13 +21,25 @@ jobs:
with:
toolchain: stable
components: rustfmt,clippy
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
run: cargo clippy -- -F clippy::suspicious -F clippy::correctness -F clippy::perf -F clippy::style

test:
runs-on: ubuntu-latest
name: cargo test
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo test
run: cargo test

check:
runs-on: ubuntu-latest
strategy:
Expand All @@ -58,3 +66,24 @@ jobs:
run: cargo +${{ matrix.version }} check --target ${{ matrix.target }}
- name: cargo +${{ matrix.version }} build
run: cargo +${{ matrix.version }} build --target ${{ matrix.target }}

check-example-test-application:
runs-on: ubuntu-latest
name: check test_application example
defaults:
run:
working-directory: examples/test_application
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
run: cargo clippy -- -F clippy::suspicious -F clippy::correctness -F clippy::perf -F clippy::style
- name: cargo check
run: cargo check
133 changes: 37 additions & 96 deletions examples/test_application/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion examples/test_application/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use embassy_sync::{
blocking_mutex::raw::NoopRawMutex,
pipe::{Pipe, Reader, Writer},
};
use embedded_io_async::{Read, Write};
use tinynet::ptp_packets::{Master, PacketInterface, Slave};

const PIPE_LENGTH: usize = 256;
Expand Down