@@ -55,16 +55,23 @@ FROM builder-base AS builder-ci
55
55
RUN --mount=type=cache,target=${CARGO_HOME}/registry \
56
56
--mount=type=cache,target=${CARGO_HOME}/git \
57
57
--mount=type=cache,target=/app/target \
58
- cargo build && \
58
+ cargo clippy --workspace --benches --tests --examples --all-features --frozen -- -D warnings && \
59
59
cargo nextest archive --archive-file tests.tar.zst
60
60
61
+ FROM builder-ci as doc
62
+
63
+ RUN --mount=type=cache,target=${CARGO_HOME}/registry \
64
+ --mount=type=cache,target=${CARGO_HOME}/git \
65
+ --mount=type=cache,target=/app/target \
66
+ cargo doc --all-features --workspace --frozen --no-deps && \
67
+ touch doc-done
68
+
61
69
62
70
FROM builder-ci AS ci-part
63
71
64
72
RUN --mount=type=cache,target=${CARGO_HOME}/registry \
65
73
--mount=type=cache,target=${CARGO_HOME}/git \
66
74
--mount=type=cache,target=/app/target \
67
- cargo clippy --workspace --benches --tests --examples --all-features --frozen -- -D warnings && \
68
75
cargo doc --all-features --workspace --frozen --no-deps && \
69
76
touch ci-part-done
70
77
@@ -85,6 +92,7 @@ COPY --from=ci-part /app/ci-part-done /app/ci-part-done
85
92
COPY --from=machete /app/machete-done /app/machete-done
86
93
COPY --from=fmt /app/fmt-done /app/fmt-done
87
94
COPY --from=nextest /app/nextest-done /app/nextest-done
95
+ COPY --from=doc /app/doc-done /app/doc-done
88
96
89
97
# Release builder
90
98
FROM builder-base AS build-release
0 commit comments