Skip to content

Commit dd4ca2e

Browse files
author
Jonas Schievink
committed
ci: build all examples
1 parent 845fa85 commit dd4ca2e

File tree

1 file changed

+55
-6
lines changed

1 file changed

+55
-6
lines changed

scripts/build.sh

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,50 @@ cargo build --manifest-path nrf52833-hal/Cargo.toml
1818
echo Building nrf52840-hal...
1919
cargo build --manifest-path nrf52840-hal/Cargo.toml
2020

21+
# Build all the example projects.
22+
23+
echo Building examples/ccm-demo...
24+
cargo build --manifest-path examples/ccm-demo/Cargo.toml --features=52810
25+
cargo build --manifest-path examples/ccm-demo/Cargo.toml --features=52832
26+
cargo build --manifest-path examples/ccm-demo/Cargo.toml --features=52833
27+
cargo build --manifest-path examples/ccm-demo/Cargo.toml --features=52840
28+
29+
echo Building examples/comp-demo...
30+
cargo build --manifest-path examples/comp-demo/Cargo.toml
31+
32+
echo Building examples/ecb-demo...
33+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52810
34+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52832
35+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52833
36+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52840
37+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=51
38+
39+
echo Building examples/gpiote-demo...
40+
cargo build --manifest-path examples/gpiote-demo/Cargo.toml
41+
42+
echo Building examples/i2s-controller-demo...
43+
cargo build --manifest-path examples/i2s-controller-demo/Cargo.toml
44+
45+
# FIXME: Does not build
46+
#echo Building examples/i2s-peripheral-demo...
47+
#cargo build --manifest-path examples/i2s-peripheral-demo/Cargo.toml
48+
49+
echo Building examples/lpcomp-demo...
50+
cargo build --manifest-path examples/lpcomp-demo/Cargo.toml
51+
52+
echo Building examples/ppi-demo...
53+
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=51
54+
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=52810
55+
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=52832
56+
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=52833
57+
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=52840
58+
59+
echo Building examples/pwm-demo...
60+
cargo build --manifest-path examples/pwm-demo/Cargo.toml
61+
62+
echo Building examples/qdec-demo...
63+
cargo build --manifest-path examples/qdec-demo/Cargo.toml
64+
2165
echo Building examples/rtic-demo...
2266
cargo build --manifest-path examples/rtic-demo/Cargo.toml
2367
echo Building examples/rtic-demo...
@@ -26,18 +70,23 @@ echo Building examples/rtic-demo...
2670
cargo build --manifest-path examples/rtic-demo/Cargo.toml --no-default-features --features="52810" --target thumbv7em-none-eabi
2771
echo Building examples/rtic-demo...
2872
cargo build --manifest-path examples/rtic-demo/Cargo.toml --no-default-features --features="52840"
73+
2974
echo Building examples/spi-demo...
3075
cargo build --manifest-path examples/spi-demo/Cargo.toml
76+
3177
echo Building examples/twi-ssd1306...
3278
cargo build --manifest-path examples/twi-ssd1306/Cargo.toml
3379
echo Building examples/twi-ssd1306...
3480
cargo build --manifest-path examples/twi-ssd1306/Cargo.toml --no-default-features --features="52840" --target thumbv7em-none-eabi
35-
echo Building examples/ecb-demo...
36-
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52832
37-
echo Building examples/ccm-demo...
38-
cargo build --manifest-path examples/ccm-demo/Cargo.toml --features=52832
39-
echo Building examples/ppi-demo...
40-
cargo build --manifest-path examples/ppi-demo/Cargo.toml --features=52832
81+
82+
echo Building examples/twim-demo...
83+
cargo build --manifest-path examples/twim-demo/Cargo.toml
84+
85+
echo Building examples/twis-demo...
86+
cargo build --manifest-path examples/twis-demo/Cargo.toml
87+
88+
echo Building examples/wdt-demo...
89+
cargo build --manifest-path examples/wdt-demo/Cargo.toml
4190

4291
echo Checking source code formatting...
4392
cargo +stable fmt -- --check

0 commit comments

Comments
 (0)