-
Notifications
You must be signed in to change notification settings - Fork 238
84 lines (84 loc) · 2.57 KB
/
rp235x_hal_examples_riscv.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
on: [push, pull_request]
name: Check rp235x-hal-examples on Arm
env:
PACKAGE: rp235x-hal-examples
TARGET: riscv32imac-unknown-none-elf
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ env.TARGET }}
- name: Build
run: |
cd ${PACKAGE}
cat riscv_examples.txt | while read example; do
echo "Building $example"
cargo build --target=${TARGET} --bin $example
done
udeps:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-01-30
target: ${{ env.TARGET }}
- name: Install cargo-udeps
run: |
curl -sSL https://github.com/est31/cargo-udeps/releases/download/v0.1.45/cargo-udeps-v0.1.45-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - --strip-components=2 -C ~/.cargo/bin ./cargo-udeps-v0.1.45-x86_64-unknown-linux-gnu/cargo-udeps
- name: Run cargo-udeps
run: |
cd ${PACKAGE}
cat riscv_examples.txt | while read example; do
echo "Building $example"
cargo udeps --target=${TARGET} --bin $example
done
msrv:
name: Verify build on MSRV
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.77
target: ${{ env.TARGET }}
- name: Use older version of regex
run: cd ${PACKAGE} && cargo update -p regex --precise 1.9.3
- name: Build on MSRV
run: |
cd ${PACKAGE}
cat riscv_examples.txt | while read example; do
echo "Building $example"
cargo build --target=${TARGET} --bin $example
done
fmt:
runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check format
run: cd ${PACKAGE} && cargo fmt -- --check
clippy:
runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ env.TARGET }}
components: clippy
- name: Run cargo clippy
run: |
cd ${PACKAGE}
cat riscv_examples.txt | while read example; do
echo "Checking $example"
cargo clippy --target=${TARGET} --bin $example
done