Skip to content

Commit

Permalink
Add proper CI for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Aug 1, 2024
1 parent c3c2f0e commit cd8d3b8
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,28 @@ on:
# Also on PRs, just be careful not to publish anything
pull_request:


jobs:
ci:
runs-on: ubuntu-22.04
library-ci:
runs-on: ubuntu-latest
strategy:
matrix:
subcmd: [build, clippy, test]

steps:
- uses: actions/checkout@v4

- name: Build
run: cargo check
- name: Run `cargo ${{ matrix.subcmd }}` for library
run: cargo ${{ matrix.subcmd }}

example-ci:
runs-on: ubuntu-latest
strategy:
matrix:
example: [embassy, blocking, tokio, nrf52]

- name: Test
run: cargo test -- --nocapture
steps:
- uses: actions/checkout@v4

- name: Build examples
run: for i in embassy blocking tokio nrf52; do pushd examples/$i; cargo build; popd; done;
- name: Run `cargo build` for example ${{ matrix.example }}
working-directory: examples/${{ matrix.example }}
run: cargo build

0 comments on commit cd8d3b8

Please sign in to comment.