-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(ci,docker): save RUN --mount=type=cache
ccache on GitHub Actions cache
#4854
Conversation
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
…ache-dance Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
@youtalk I think after this PR was merged, docker-build-and-push-main-self-hosted.yaml started failing. https://github.com/autowarefoundation/autoware/actions/runs/9477822140/job/26113063357#step:9:859
Do I need to install something to the arm64 machine to make this work? It is a self hosted machine and I have access to it. |
I've updated the machine and maybe it will start working again 🤷♂️ https://github.com/autowarefoundation/autoware/actions/runs/9516463540 |
@xmfcx Thank you! I think we need to update docker and you did it. |
Yes, it seems the system upgrade solved it. I've also restarted and reinstalled the actions runner to have it clean. |
…ns cache (autowarefoundation#4854) Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
Description
colcon mixin
instead of raw--cmake-args
args #4842I've finally understood the BuildKit doesn't preserve cache mounts in the GitHub Actions cache by default. If we wish to put our cache mounts into GitHub Actions cache and reuse it between builds, we can use a workaround provided by reproducible-containers/buildkit-cache-dance
https://docs.docker.com/build/ci/github-actions/cache/#cache-mounts
I found that the
buildkit-cache-dance
action does not work effectively unless thesetup-buildx-action
action is executed beforehand, so it was temporarily moved fromdocker-build-and-push/action.yaml
to the beginning of each workflow file. This will be improved in the next PR.Tests performed
Currently, as part ofI show the build results of only the core module.autoware.universe
is broken,https://github.com/youtalk/autoware/actions/runs/9462979885?pr=44
Effects on system behavior
Not applicable.
Interface changes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.