-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (32 loc) · 1.06 KB
/
examples_rp2040_build.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
on: [push, pull_request]
name: Examples RP2040 build
jobs:
check_format_build:
name: Examples - Check, Format, Build
runs-on: ubuntu-latest
steps:
#Checkout source
- name: Checkout sources
uses: actions/checkout@v3
#toolchain and tools
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: thumbv6m-none-eabi
components: rustfmt, clippy
- name: Install flip-link linker
run: cargo install flip-link
#build and lint
- name: Run cargo check - examples rp2040
working-directory: ./examples/rp2040/
run: cargo check
- name: Run cargo fmt - examples rp2040
working-directory: ./examples/rp2040/
run: cargo fmt --all -- --check
- name: Run cargo clippy - examples rp2040
working-directory: ./examples/rp2040/
run: cargo clippy -- -D warnings
- name: Run cargo build - examples rp2040
working-directory: ./examples/rp2040/
run: cargo build