-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add deploy to GHCR action #1
Conversation
Nudge |
@Maggie0002 Thanks for the nudge, just merged! This looks like a good approach, let's hope it all builds ok! |
So I'm switching to trigger on |
@Maggie0002 Now there's this error:
It kind of makes sense, I need to figure out how to set |
Ok, I ended up using Then there was a problem with I'm travelling so won't be able to test on a real pi until the end of February. |
Amazing thanks! Some great fixes in here I wouldn't have thought of. Does this unpack all of the different architectures to build? Or maybe it is overwriting with the final build?
I was expecting there would be a arch tab like there is here: https://github.com/balena-labs-research/starter-interface/pkgs/container/bsi And when running on a NUC I get the error:
I wonder if it is only running for I also wonder whether we need to use the balenaLib images at all. We could try with just No rush though, enjoy your holiday :) |
I think I see the problem, the I'll try with just |
@Maggie0002 What an ordeal. I've tried with the non-balena alpine images and couldn't get them to build. I was getting this kind of error
I've tried to revert to the matrix strategy build which worked before (#7) and now pretty consistently getting rust errors related to running out of memory (e.g. #27). I'm not sure what to try next? |
What's this fix do?
tmpfs may be written to RAM, which means if it is being stored in that directory then that directory is content is written to RAM, which may mean running out of memory? |
May also want to try disabling the cache:
Could be an overlap of caches between the different builds. |
This action works around an armv7 build issue that I was getting before. From the docs:
It moves the whole docker build onto tmpfs so yeah, disk space is limited. But without it the build also fails. |
Wow, these quick fixes are never quick huh. Really appreciate the help with this. Have you tried it again today? Worth doing a re-run just to check whether it was actually network issues like some of the errors suggest, perhaps the GitHub workflows were just having a bit of a moment. |
I've been running a slightly different action workflow today, just the It successfully builds these two containers, but they're still not linked. My plan is to:
I can but I think avoiding the tmpfs step is a good idea. |
I switched to use the cargo's "sparse registry" which seems to keep memory under control. But I guess it'll take a few more runs to see if the builds are stable. I'll move onto getting |
I don't think rustup supports installing on arm6 for compilation. I found some docs about that target being Tier 2 without host tools which means it doesn't include cargo:
The sparse registry feature will be in Rust 1.68 which will be released next week, March 09 2023. So I'm going to pause this until it's released and makes it's way into Alpine edge. I'll try and build the |
Hey @andrewn, I'm afraid I am no longer working at Balena. It looks like you're making good progress, but I would suggest posting on the forums of balenaSound repo where someone may pick it up. |
@Maggie0002 Thanks for letting me know. All the best with whatever you're doing next and thanks for your help with this! |
Taking a step back, the reason we need to do this compilation at all is because the Alpine package of |
Adds a deploy to GHCR action to build and deploy the Docker images