Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save only the cargo registry cache and index and not the whole cargo folder #1341

Merged
merged 2 commits into from
Jun 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ WORKDIR $WORKHOME/worker

COPY . .

RUN --mount=type=cache,id=cargo-registry,target=/opt/rust/registry \
RUN --mount=type=cache,id=cargo-registry-cache,target=/opt/rust/registry/cache \
--mount=type=cache,id=cargo-registry-index,target=/opt/rust/registry/index \
--mount=type=cache,id=cargo-git,target=/opt/rust/git/db \
--mount=type=cache,id=cargo-sccache-${WORKER_MODE}${ADDITIONAL_FEATURES},target=/home/ubuntu/.cache/sccache \
echo ${FINGERPRINT} && make && make identity && cargo test --release && sccache --show-stats
Expand Down