-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sh
executable file
·83 lines (71 loc) · 1.27 KB
/
build.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
#!/usr/bin/env bash
set -euo pipefail
# This file is a helper file to help build and test local builds of this repository.
# Load all build functions
# All of the build/testing logic should be defined inside build_fns.sh
. ./build_fns.sh
# Check the formatting
check_fmt
# Build and test the solutions
pushd exercise-solutions
test_examples
pushd connected-mailbox
test_standalone
popd
pushd multi-threaded-mailbox
test_standalone
popd
popd
# Build from source because armv8r-none-eabihf isn't Tier 2
pushd qemu-code
pushd uart-driver
build_qemu_core
popd
popd
pushd nrf52-code
pushd boards/dk
build_thumbv7em
popd
pushd boards/dk-solution
build_thumbv7em
popd
pushd boards/dongle
build_thumbv7em
popd
pushd radio-app
build_thumbv7em
popd
for i in usb-lib-solutions/*; do
pushd "$i"
build_test_thumbv7em
popd
done
pushd usb-lib
build_thumbv7em
popd
pushd usb-app
build_thumbv7em
popd
pushd usb-app-solutions
build_thumbv7em
popd
pushd consts
build_thumbv7em
popd
pushd puzzle-fw
build_thumbv7em
popd
pushd loopback-fw
build_thumbv7em
popd
popd
# Only check the templates (they will panic at run-time due to the use of todo!)
pushd exercise-templates
check_templates
popd
# Build and test the mdbook build
pushd exercise-book
mdbook_test_build
popd
# Zip the output
zip_output