Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
koendv wants to merge 4 commits into arduino:main from koendv:main
Closed

raspberry pi/arm64 #966

koendv wants to merge 4 commits into arduino:main from koendv:main

Conversation

@koendv
Copy link

@koendv koendv commented Apr 23, 2022

Motivation

Make build on raspberry pi easier

Change description

Add arm64 to prebuilt binaries (clangd).

Other information

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@per1234 per1234 added topic: infrastructure Related to project infrastructure architecture: arm Specific to ARM host architecture os: linux Specific to Linux operating system labels Apr 23, 2022
Copy link
Author

koendv commented Apr 24, 2022

I'm sorry I messed this PR up.
I am trying to build arduino-ide using a raspberry pi as a self-hosted runner.

Copy link
Contributor

per1234 commented Apr 24, 2022

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:

if: github.repository == 'arduino/arduino-ide'

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:

- os: windows-2019
- os: ubuntu-18.04 # https://github.com/arduino/arduino-ide/issues/259
- os: macos-latest

Or set this to true if you do want the unsigned builds for those OSes:

IS_FORK: ${{ github.event.pull_request.head.repo.fork == true }}

Copy link
Author

koendv commented Apr 25, 2022

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

per1234 reacted with thumbs up emoji

@per1234 per1234 added the type: enhancement Proposed improvement label Apr 25, 2022
Copy link
Author

koendv commented Apr 27, 2022

Add to upload appimage and zip as artifacts.
artifacts.patch.txt

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

architecture: arm Specific to ARM host architecture os: linux Specific to Linux operating system topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /