-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathopte.sh
executable file
·44 lines (35 loc) · 942 Bytes
/
opte.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
#!/bin/bash
#:
#: name = "opte"
#: variety = "basic"
#: target = "helios-2.0"
#: rust_toolchain = "nightly-2024-05-12"
#: output_rules = []
#: access_repos = [
#: "oxidecomputer/illumos-rs",
#: ]
#:
set -o errexit
set -o pipefail
set -o xtrace
function header {
echo "# ==== $* ==== #"
}
pfexec pkg install clang-15
cargo --version
rustc --version
cd lib/opte
header "check docs"
#
# I believe this means any doc warnings in deps will cause this to
# fail. Using a more targeted approach in the future might be nice.
#
# Use nightly which is needed for the `kernel` feature.
RUSTDOCFLAGS="-D warnings" ptime -m \
cargo +nightly-2024-05-12 doc --no-default-features --features=api,std,engine,kernel
header "analyze std + api"
ptime -m cargo clippy --all-targets
header "analyze no_std + engine + kernel"
ptime -m cargo +nightly-2024-05-12 clippy --no-default-features --features engine,kernel
header "test"
ptime -m cargo test