Lock cargo dependencies during CI builds

This commit is contained in:
Kirill Bulatov
2022-08-26 15:40:22 +03:00
committed by Kirill Bulatov
parent a5ca6a9d2b
commit a56ae15edf
7 changed files with 13 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ COPY . .
# Show build caching stats to check if it was used in the end.
# Has to be the part of the same RUN since cachepot daemon is killed in the end of this RUN, losing the compilation stats.
RUN set -e \
&& mold -run cargo build --release \
&& mold -run cargo build --locked --release \
&& cachepot -s
# Build final image