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

ci: fix dunfell github actions #49

Closed
wants to merge 3 commits into from
Closed

ci: fix dunfell github actions #49

wants to merge 3 commits into from

Conversation

bachp
Copy link
Collaborator

@bachp bachp commented Mar 2, 2021

This fixes github actions for the dunfell branch

Containers build quicker than a full QEMU as no kernel etc. is needed
@agherzan
Copy link

@bachp friendly ping on this one

@bachp
Copy link
Collaborator Author

bachp commented Feb 12, 2022

@agherzan Unfortunatly github actions doesn't work well with yocto builds. I haven't found a reliable way that doesn't run into timeouts all the time. Ideas are welcome

@agherzan
Copy link

@bachp I have finally migrated to GitHub actions with a BSP layer. I will test drive the setup for a while but it looks like everything is in place for now. You can take a look. I'm planning to define some yocto-specific actions so we can reuse bits across the ecosystem.

agherzan/meta-raspberrypi#1005

@bachp
Copy link
Collaborator Author

bachp commented May 1, 2022

@agherzan I have CI working via kas, but it still takes a lot of time. Ideally there would be a way to cache some of the sstate between runs.

@agherzan
Copy link

agherzan commented May 1, 2022

@bachp not easy if you use default workers. I'm not sure what setup you have here.

@moto-timo
Copy link
Contributor

@bachp I noticed you got a successful build with CDN SSTATE_MIRROR for mickeldore. I was contemplating if the 10GB limit on cache@vx would also be enough to help us keep under the dreaded timeout.

@bachp
Copy link
Collaborator Author

bachp commented Jan 18, 2024

@moto-timo Unfortunately I'm not happy with the any of the current CI setups I tried.

I haven't tried cache@vx but so far I found that the sstate doesn't fit well with the method of uploading and downloading the cache. As the cache keeps growing.

But you got me thinking about an idea. Maybe a workflow that would work is the following:

  1. Download and extract the cache locally to ${SOMEDIR}/sstate (usually done automatically by caching service).
  2. Rename from ${SOMEDIR}/sstate to ${SOMEDIR}/sstate-prev
  3. Configure yocto to use ${SOMEDIR}/sstate-prev as SSTATE_MIRROR
  4. Uplaod ${SOMEDIR}/sstate so it is ready for the next run

I haven't tried this yet.

@bachp
Copy link
Collaborator Author

bachp commented Jan 31, 2024

Obsolete now

@bachp bachp closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants