-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathci.sh
executable file
·125 lines (100 loc) · 2.75 KB
/
ci.sh
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
set -euxo pipefail
# Ensure the book builds
mdbook build book
# Template builds for RP2040, RP2350 and nRF52840
rustup target add \
thumbv6m-none-eabi \
thumbv7em-none-eabihf \
thumbv8m.main-none-eabihf
# API ICD
cargo check \
--manifest-path crates/poststation-api-icd/Cargo.toml \
--no-default-features \
--profile ci
cargo check \
--manifest-path crates/poststation-api-icd/Cargo.toml \
--all-features \
--profile ci
# SIM ICD
cargo check \
--manifest-path crates/poststation-sim-icd/Cargo.toml \
--profile ci
# FW ICD
cargo check \
--manifest-path crates/poststation-fw-icd/Cargo.toml \
--all-features \
--profile ci
cargo check \
--manifest-path crates/poststation-fw-icd/Cargo.toml \
--no-default-features \
--target thumbv6m-none-eabi \
--profile ci
# SDK crate
cargo check \
--manifest-path tools/poststation-sdk/Cargo.toml \
--profile ci
# CLI tool
cargo build \
--manifest-path tools/poststation-cli/Cargo.toml \
--profile ci
## Templates
# ICD
cargo check \
--manifest-path templates/icd/Cargo.toml \
--features="use-std" \
--profile ci
cargo check \
--manifest-path templates/icd/Cargo.toml \
--no-default-features \
--target thumbv6m-none-eabi \
--profile ci
# RP2040
cargo build \
--manifest-path templates/rp2040/Cargo.toml \
--target thumbv6m-none-eabi \
--profile ci
# nRF52840
cargo build \
--manifest-path templates/nrf52840/Cargo.toml \
--target thumbv7em-none-eabihf \
--profile ci
## Examples
### waveshare-rp2040-keyboard-3
cargo check \
--manifest-path examples/waveshare-rp2040-keyboard-3/icd/Cargo.toml \
--features="use-std" \
--profile ci
cargo check \
--manifest-path examples/waveshare-rp2040-keyboard-3/icd/Cargo.toml \
--no-default-features \
--target thumbv6m-none-eabi \
--profile ci
cargo build \
--manifest-path examples/waveshare-rp2040-keyboard-3/rp2040/Cargo.toml \
--target thumbv6m-none-eabi \
--profile ci
cargo build \
--manifest-path examples/waveshare-rp2040-keyboard-3/demo/Cargo.toml \
--profile ci
### i2c-passthru
cargo check \
--manifest-path examples/i2c-passthru/icd/Cargo.toml \
--features="use-std" \
--profile ci
cargo check \
--manifest-path examples/i2c-passthru/icd/Cargo.toml \
--no-default-features \
--target thumbv6m-none-eabi \
--profile ci
cargo build \
--manifest-path examples/i2c-passthru/rp2040/Cargo.toml \
--target thumbv6m-none-eabi \
--profile ci
cargo build \
--manifest-path examples/i2c-passthru/rp2350/Cargo.toml \
--target thumbv8m.main-none-eabihf \
--profile ci
cargo build \
--manifest-path examples/i2c-passthru/demo/Cargo.toml \
--profile ci