-
Notifications
You must be signed in to change notification settings - Fork 72
/
build.sh
executable file
·69 lines (64 loc) · 3.23 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
#!/bin/bash
LOG_FILE=build.log
SUCCESS=1
try_compile() {
CRATE=$1
echo ">> Building ${CRATE}" | tee -a ${LOG_FILE}
cargo build --manifest-path=${CRATE}
if [ $? -ne 0 ]; then
echo "!! Failed to build ${CRATE}" | tee -a ${LOG_FILE}
SUCCESS=0
fi
}
# These are not supposed to compile
# try_compile ./assignments/files-match-result-assignment/template/Cargo.toml
# try_compile ./assignments/async-chat-template/Cargo.toml
# try_compile ./assignments/_templates/concurrency/Cargo.toml
try_compile ./assignments/solutions/threaded-mailbox/Cargo.toml
try_compile ./assignments/solutions/threaded-mailbox/mailbox/Cargo.toml
try_compile ./assignments/solutions/threaded-mailbox/redisish/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-client-async/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-client/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-server-threaded/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-server-actix/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-server-async-channels/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-server/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-server-async/Cargo.toml
try_compile ./assignments/solutions/semver-client-server/semver-api/Cargo.toml
try_compile ./assignments/solutions/redis/Cargo.toml
try_compile ./assignments/solutions/async-std-mailbox-tracing/Cargo.toml
try_compile ./assignments/solutions/async-std-mailbox/Cargo.toml
try_compile ./assignments/solutions/async-std-mailbox-connection-limit/Cargo.toml
try_compile ./assignments/solutions/tcp-echo-server/Cargo.toml
try_compile ./assignments/solutions/connected-mailbox/Cargo.toml
try_compile ./assignments/solutions/tcp-client/Cargo.toml
try_compile ./assignments/solutions/calc/Cargo.toml
try_compile ./assignments/solutions/tracing-future/Cargo.toml
try_compile ./assignments/solutions/semver/Cargo.toml
try_compile ./assignments/solutions/redisish/Cargo.toml
try_compile ./assignments/solutions/actix-semver/Cargo.toml
try_compile ./assignments/solutions/fill_in_the_blanks/Cargo.toml
try_compile ./assignments/solutions/green-yellow/Cargo.toml
try_compile ./assignments/solutions/redis-protobuf/Cargo.toml
try_compile ./assignments/solutions/fizzbuzz/Cargo.toml
try_compile ./assignments/solutions/shapes/Cargo.toml
try_compile ./assignments/solutions/durable_file/Cargo.toml
try_compile ./assignments/solutions/actix/chat-websockets/Cargo.toml
try_compile ./assignments/_preliminary/async_parser_codealong/Cargo.toml
try_compile ./assignments/_preliminary/calculator/calc-ffi/Cargo.toml
try_compile ./assignments/_preliminary/calculator/calc/Cargo.toml
try_compile ./assignments/semver/parse_file/template/Cargo.toml
try_compile ./assignments/semver/parse_file/solution/Cargo.toml
try_compile ./assignments/leveldb-mdbook/solution/Cargo.toml
try_compile ./assignments/actix/chat-websockets/Cargo.toml
try_compile ./examples/ffi_use_c_in_rust/Cargo.toml
try_compile ./examples/ffi_use_rust_in_c/Cargo.toml
# Has uncompilable names for the examples
# try_compile ./semver-codealong/Cargo.toml
if [ ${SUCCESS} -ne 1 ]; then
echo "Build failed"
exit 1
else
echo "Build OK"
exit 1
fi