Fix clippy warnings across the project #1397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
LintAndFormat: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'checkout' | |
uses: actions/checkout@v3 | |
- name: 'Install Dependencies' | |
run: sudo apt-get update && make ciprepare | |
- name: 'clippy linter' | |
run: make --keep-going clippy | |
- name: 'Check formatting' | |
run: make --keep-going checkformat | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'checkout' | |
uses: actions/checkout@v3 | |
- name: 'Install Dependencies' | |
run: sudo apt-get update && make ciprepare | |
- name: 'Create coverage file' | |
run: make --keep-going citest | |
- name: 'upload the coverage file to server' | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverall/lcov.txt | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'checkout' | |
uses: actions/checkout@v3 | |
- name: 'Install Dependencies' | |
run: sudo apt-get update && make ciprepare | |
- name: 'Build all mainboards' | |
run: make --keep-going mainboards | |
- name: 'Generate report of binary sizes' | |
run: ./scripts/generate-size-report.sh |