Skip to content
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

Update github release runner to include macos arm64 #160

Merged
merged 2 commits into from
May 8, 2024

Conversation

abrightwell
Copy link
Member

Previously, the github macos-latest runner was still an amd64/x86_64 architecture. As such we were not able to have a purely Apple Silicon build through the github release workflow. However, the macos-latest runner is now supported by Apple Silicon[1]. As such we need to create a specific build target for it in .github/workflows/release.yml as well as update the build_macos_amd64 target to use the macos-13 runner such that that architecture is still being built.

This will add an extra artifact to the releases which should allow for an easier and perhaps more seamless homebrew release process.

[1] https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

@abrightwell abrightwell requested a review from a team as a code owner April 8, 2024 14:34
@abrightwell abrightwell force-pushed the abrightwell/update-release-macos-arm64 branch 3 times, most recently from ffe354c to 9c6ac27 Compare April 9, 2024 14:24
Previously, the github `macos-latest` runner was still an amd64/x86_64
architecture. As such we were not able to have a purely Apple Silicon
build through the github release workflow. However, such a runner now
exists that supports Apple Silicon[1][2]. However, the `-latest` tag
still points to the older images until sometime in Q2 2024[3]. So, we're
updating our workflows to be explicit in the `macos-<version>` to ensure
the correct architecture is utilized going forward. Also, we are
creating a create a specific build target to support Apple Silicon
builds using the `macos-14` runner in `.github/workflows/release.yml` as
well as updating the `build_macos_amd64` target to use the `macos-13`
runner. This will add an extra artifact to the releases which should
allow for an easier and perhaps more seamless homebrew release process.

[1] https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
[2] https://github.com/actions/runner-images#available-images
[3] https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
Some of the github actions were deprecated, therefore we're simply
updating those to the latest versions in both `ci.yml` and
`release.yml`.
@abrightwell abrightwell force-pushed the abrightwell/update-release-macos-arm64 branch from 9c6ac27 to fad110c Compare April 9, 2024 14:34
@abrightwell abrightwell merged commit 0c8b0e5 into main May 8, 2024
2 checks passed
@abrightwell abrightwell deleted the abrightwell/update-release-macos-arm64 branch May 8, 2024 13:34
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.

1 participant