- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 511
raspberry pi/arm64 #966
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
raspberry pi/arm64 #966
Conversation
I'm sorry I messed this PR up.
I am trying to build arduino-ide using a raspberry pi as a self-hosted runner.
I think you will need to run the workflow in your own repository in order for it to be able to access your self-hosted runner.
Unfortunately, the build workflow was unnecessarily configured so that it does not run at all in forks. However, it is simple to adjust by removing this line:
arduino-ide/.github/workflows/build.yml
Line 22 in 2be1fac
There are some repository secrets which are required in order to produced signed macOS and Windows builds, but if you only need the Linux build then you could just remove those jobs from the matrix:
arduino-ide/.github/workflows/build.yml
Lines 26 to 28 in 2be1fac
Or set this to true if you do want the unsigned builds for those OSes:
arduino-ide/.github/workflows/build.yml
Line 58 in 2be1fac
OK. This works.
- in github, fork arduino/arduino-ide
- patch your fork with file self_hosted_runner.patch
- configure a new self-hosted runner:
 In "Settings -> Actions -> Runners -> New Self-hosted Runner", choose:- Runner image: Linux
- Architecture: ARM64
 
- Follow instructions to create a self-hosted runner, from "Create a folder" to "Last step, run it!".
- In "Actions" choose "Arduino IDE" and click "Run workflow"
On the runner:
$ ./run.sh
√ Connected to GitHub
Current runner version: '2.290.1'
2022年04月25日 07:59:29Z: Listening for Jobs
2022年04月25日 08:24:16Z: Running job: build
[sudo] password for koen: 
2022年04月25日 09:02:18Z: Job build completed with result: Succeeded
Build time is 38 minutes on a raspberry pi 4b, 8gb ram, running off a Samsung T5 external SSD disk.
self_hosted_runner.patch.txt 
Add to upload appimage and zip as artifacts.
artifacts.patch.txt 
Motivation
Make build on raspberry pi easier
Change description
Add arm64 to prebuilt binaries (clangd).
Other information
Reviewer checklist