-
Notifications
You must be signed in to change notification settings - Fork 123
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
fix(CI): Cache compilation results #9328
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 960d5ca.
This PR seems to make CI noticeably faster. |
cp -a ${CARGO_TARGET_DIR} ${HOME}/tmp_target && \ | ||
cp -a ${CARGO_HOME} ${HOME}/tmp_cargo_home | ||
|
||
RUN rm -rf ${CARGO_TARGET_DIR} && rm -rf ${CARGO_HOME} && \ | ||
mv ${HOME}/tmp_target ${CARGO_TARGET_DIR} && \ | ||
mv ${HOME}/tmp_cargo_home ${CARGO_HOME} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a rather awful hack. I think there could a cleaner solution, but I coulnd't come up with anything better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be the best context to answer that #6169 (comment)
Motivation
Solution
Clean-ups
Tests
PR Checklist
C-exclude-from-changelog
label.