-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (57 loc) · 1.59 KB
/
clippy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright (c) 2023 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0
name: workflow-code-analysis
run-name: Run code analysis
on: [push, pull_request]
jobs:
job-clippy-nrf52-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install tools
run: |
sudo apt-get update -y && sudo apt-get -y install gcc-arm-none-eabi
- name: Add rustup target
run: |
rustup target add thumbv7em-none-eabi
- name: Check Clippy on nRF52 App
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd nrf52-app
cargo clippy --all-features
job-clippy-qemu-cortex-r5-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install tools
run: |
sudo apt-get update -y && sudo apt-get -y install gcc-arm-none-eabi
- name: Add rustup target
run: |
rustup target add armv7r-none-eabihf
- name: Check Clippy on QEMU Cortex-R5 App
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd qemu-cortex-r5-app
cargo clippy --all-features
job-clippy-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check Clippy on threadx-sys
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd threadx-sys
cargo clippy --all-features