Skip to content

Commit 65df227

Browse files
Merge branch 'main' into fix-scratch-unsoundness
2 parents b152ad4 + 3aac1a2 commit 65df227

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,23 @@ FROM builder-base AS builder-ci
5555
RUN --mount=type=cache,target=${CARGO_HOME}/registry \
5656
--mount=type=cache,target=${CARGO_HOME}/git \
5757
--mount=type=cache,target=/app/target \
58-
cargo build && \
58+
cargo clippy --workspace --benches --tests --examples --all-features --frozen -- -D warnings && \
5959
cargo nextest archive --archive-file tests.tar.zst
6060

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+
6169

6270
FROM builder-ci AS ci-part
6371

6472
RUN --mount=type=cache,target=${CARGO_HOME}/registry \
6573
--mount=type=cache,target=${CARGO_HOME}/git \
6674
--mount=type=cache,target=/app/target \
67-
cargo clippy --workspace --benches --tests --examples --all-features --frozen -- -D warnings && \
6875
cargo doc --all-features --workspace --frozen --no-deps && \
6976
touch ci-part-done
7077

@@ -85,6 +92,7 @@ COPY --from=ci-part /app/ci-part-done /app/ci-part-done
8592
COPY --from=machete /app/machete-done /app/machete-done
8693
COPY --from=fmt /app/fmt-done /app/fmt-done
8794
COPY --from=nextest /app/nextest-done /app/nextest-done
95+
COPY --from=doc /app/doc-done /app/doc-done
8896

8997
# Release builder
9098
FROM builder-base AS build-release

0 commit comments

Comments
 (0)