Skip to content

Commit

Permalink
ci: integrate clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMemories authored and kaspar030 committed Feb 22, 2024
1 parent 045f4f5 commit 35b36be
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
merge_group:

jobs:
CI:
build:
runs-on: ubuntu-latest

env:
Expand Down Expand Up @@ -58,14 +58,34 @@ jobs:
laze build --partition hash:${{ matrix.partition }} --builders microbit-v2,nrf52840dk,rpi-pico,rpi-pico-w -g
lint:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy

- name: rust cache
uses: Swatinem/rust-cache@v2

# TODO: we'll eventually want to check the whole worspace with --workspace
# TODO: we'll eventually want to check relevant feature combinations
# TODO: we may want to use --no-deps as well
- run: cargo clippy --verbose --locked -p riot-rs-embassy

CI-success:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [CI]
needs: [build]
steps:
- run: |
result="${{ needs.CI.result }}"
result="${{ needs.build.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
Expand Down

0 comments on commit 35b36be

Please sign in to comment.