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
24 changes: 23 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
- name: cargo fmt --check (examples)
run: cargo fmt --check
working-directory: "./examples/rt685s"
- name: cargo fmt --check (bootloader-tool)
run: cargo fmt --check
working-directory: "./bootloader-tool"

clippy:
runs-on: ubuntu-latest
Expand All @@ -65,7 +68,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
components: clippy,rustfmt
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo clippy (libs)
Expand All @@ -82,6 +85,13 @@ jobs:
clippy_flags: -- -F clippy::suspicious -D clippy::correctness -F clippy::perf -F clippy::style
github_token: ${{ secrets.GITHUB_TOKEN }}
workdir: "./examples/rt685s"
- name: cargo clippy (bootloader-tool)
uses: giraffate/clippy-action@v1
with:
reporter: "github-pr-check"
clippy_flags: -- -D clippy::suspicious -D clippy::correctness -D clippy::perf -D clippy::style
github_token: ${{ secrets.GITHUB_TOKEN }}
workdir: "./bootloader-tool"

# Enable once we have a released crate
# semver:
Expand Down Expand Up @@ -116,6 +126,8 @@ jobs:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt # required for device-driver
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo doc (libs)
Expand Down Expand Up @@ -145,6 +157,8 @@ jobs:

- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt # required for device-driver

- name: rustup target add thumbv8m.main-none-eabihf
run: rustup target add thumbv8m.main-none-eabihf
Expand Down Expand Up @@ -202,13 +216,18 @@ jobs:
target: [thumbv8m.main-none-eabihf]
name: ubuntu / MSRV ${{ matrix.msrv }}
steps:
- name: Install libudev (linux)
run: |
sudo apt update
sudo apt install -y libudev-dev
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ${{ matrix.msrv }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
components: rustfmt # required for device-driver
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo +${{ matrix.msrv }} check (libs)
Expand All @@ -217,3 +236,6 @@ jobs:
- name: cargo +${{ matrix.msrv }} check (examples)
run: cargo check
working-directory: "./examples/rt685s"
- name: cargo +${{ matrix.msrv }} check (bootloader-tool)
run: cargo check
working-directory: "./bootloader-tool"
Loading