-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 arm-runner CI issue #182
Conversation
Add workaround for "Updating crates.io index" issue Enlarge image to download build files Bind mount repository as the goal doesn't seem to be to produce an image Likewise, disable image optimization Signed-off-by: Paul Guyot <[email protected]>
I tested it and it works wonderfully. As you pointed out, I am not trying to create an image, but instead I wanted to use your ARM Runner to compile Raspirus as an executable ( |
Yes you can upload artifacts. If you use the So you can upload them using a standard upload artifact action. Alternatively you can use the The tests for these options can help: https://github.com/pguyot/arm-runner-action/blob/main/.github/workflows/test-bind_mount.yml https://github.com/pguyot/arm-runner-action/blob/main/.github/workflows/test-artifact.yml |
Great, thank you! |
@pguyot Sorry to bother you again, but I just noticed that the action takes about 4 hours to create my executable. I just wanted to know if there is something I could enhance, maybe some way of caching dependencies? If not it's ok, I can let it run overnight, it just shouldn't exceed the maximum of 6 hours, because GitHub would then forcefully terminate it. |
You can indeed use GitHub cache action. Have you considered using cross-rust? At least to cross-compile some packages? It took 2 hours to install tauri-cli, while with cross-rust, it only takes 9 minutes. See this build: With this workflow: I didn't copy the rust compiled files, they should be copied to the repository's directory so they'll be available in the qemu environment, but I guess you can work from there if you want to explore this path. The trick was to select the features with the vendored openssl library. |
Thank you for providing your example, the speed boost is impressive. I will do some more testing and see what else I can do outside the Runner. Especially caching dependencies might be a good idea. Thank you for your help again |
Add workaround for "Updating crates.io index" issue
Enlarge image to download build files
Bind mount repository as the goal doesn't seem to be to produce an image
Likewise, disable image optimization
Fixes pguyot/arm-runner-action/issues/77