Skip to content

Conversation

@felias-fogg
Copy link
Contributor

In the existing CI script, only one binary is produced for macOS, and it is claimed to be an Intel binary. However, it turns out that an Apple Silicon binary is produced because the runner is macos-latest, which, according to the documentation https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories, is an arm64 runner.

The corrected script now produces an ARM and an Intel binary for the Macs. Note that the latter one takes 1 hour (since it builds gcc from source, I believe).

@gatk555
Copy link
Collaborator

gatk555 commented Dec 7, 2025

It seems that Homebrew builds avr-gcc 9 from scratch. Have you tried other versions?

@felias-fogg
Copy link
Contributor Author

It seems that all avr-gcc versions for Intel Macs are built from source. I have no idea why. I'll open an issue with them.

@gatk555 gatk555 merged commit b3b4a4f into buserror:master Dec 7, 2025
9 checks passed
@gatk555
Copy link
Collaborator

gatk555 commented Dec 7, 2025

That sounds a good idea, thanks. If the long build time becomes a problem, the script could be modified to skip building tests and examples. They do not get saved. But probably all the build scripts should be running the tests.

@felias-fogg
Copy link
Contributor Author

It is a feature, not a bug: osx-cross/homebrew-avr#380

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.

2 participants