-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding sccache to greatly increase cargo build runs
- Loading branch information
1 parent
a4736fe
commit 31cf20b
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,11 @@ RUN rustup component add rustfmt && cargo install rustfmt || true | |
RUN rustup default stable | ||
|
||
# Install build essentials and curl | ||
RUN apk update && apk add curl build-base | ||
RUN apk update && apk add curl build-base sccache | ||
|
||
# Set the Shared Compilation Cache for Cargo to use sccache | ||
# This greatly improves build times when running concurrent builds | ||
ENV RUSTC_WRAPPER=/usr/bin/sccache | ||
|
||
# Install buf | ||
RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters