File tree 4 files changed +58
-2
lines changed
4 files changed +58
-2
lines changed Original file line number Diff line number Diff line change 8
8
# CI scripts:
9
9
# - .github/buildomat/build-and-test.sh
10
10
# - .github/buildomat/jobs/clippy.sh
11
+ # - .github/buildomat/jobs/check-features.sh
11
12
# - .github/workflows/rust.yml
12
13
#
13
14
[build ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "check-features (helios)"
4
+ # : variety = "basic"
5
+ # : target = "helios-2.0"
6
+ # : rust_toolchain = true
7
+ # : output_rules = []
8
+
9
+ # Run cargo check on illumos with feature-specifics like `no-default-features`.
10
+
11
+ set -o errexit
12
+ set -o pipefail
13
+ set -o xtrace
14
+
15
+ cargo --version
16
+ rustc --version
17
+
18
+ #
19
+ # Set up our PATH for use with this workspace.
20
+ #
21
+ source ./env.sh
22
+
23
+ banner prerequisites
24
+ ptime -m bash ./tools/install_builder_prerequisites.sh -y
25
+
26
+ banner check
27
+ export CARGO_INCREMENTAL=0
28
+ ptime -m cargo check --workspace --bins --tests --no-default-features
29
+ RUSTDOCFLAGS=" --document-private-items -D warnings" ptime -m cargo doc --workspace --no-deps --no-default-features
Original file line number Diff line number Diff line change 10
10
# (that we want to check) is conditionally-compiled on illumos only.
11
11
#
12
12
# Note that `cargo clippy` includes `cargo check, so this ends up checking all
13
- # of our code.
13
+ # of our (default) code.
14
14
15
15
set -o errexit
16
16
set -o pipefail
Original file line number Diff line number Diff line change 53
53
run : cargo run --bin omicron-package -- -t default check
54
54
55
55
# Note that `cargo clippy` includes `cargo check, so this ends up checking all
56
- # of our code.
56
+ # of our (default) code.
57
57
clippy-lint :
58
58
runs-on : ubuntu-22.04
59
59
env :
82
82
- name : Run Clippy Lints
83
83
run : cargo xtask clippy
84
84
85
+ check-features :
86
+ runs-on : ubuntu-22.04
87
+ env :
88
+ CARGO_INCREMENTAL : 0
89
+ steps :
90
+ # This repo is unstable and unnecessary: https://github.com/microsoft/linux-package-repositories/issues/34
91
+ - name : Disable packages.microsoft.com repo
92
+ run : sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
93
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
94
+ with :
95
+ ref : ${{ github.event.pull_request.head.sha }} # see omicron#4461
96
+ - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
97
+ if : ${{ github.ref != 'refs/heads/main' }}
98
+ - name : Report cargo version
99
+ run : cargo --version
100
+ - name : Update PATH
101
+ run : source "./env.sh"; echo "PATH=$PATH" >> "$GITHUB_ENV"
102
+ - name : Print PATH
103
+ run : echo $PATH
104
+ - name : Print GITHUB_ENV
105
+ run : cat "$GITHUB_ENV"
106
+ - name : Install Pre-Requisites
107
+ run : ./tools/install_builder_prerequisites.sh -y
108
+ - name : Run Cargo Check (No Default Features)
109
+ run : cargo check --workspace --bins --tests --no-default-features
110
+
85
111
# This is just a test build of docs. Publicly available docs are built via
86
112
# the separate "rustdocs" repo.
87
113
build-docs :
You can’t perform that action at this time.
0 commit comments