-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(ci): publish ARM macOS builds #22140
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 7 Passed, 0 Skipped, 25.43s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big 👍 to adding arm Mac builds. People have been asking for these for a while. I think you can run the "Custom Build" workflow (supports workflow_dispatch
) with this branch to test before merging.
Additionally, we'll need to update:
- The homebrew formula to support both architectures
- Maybe
distribution/install.sh
to choose the correct architecture? - The website to include a link to the arm artifacts for new releases
We could do that after this is merged though.
Awesome, I will update these tomorrow. |
@@ -605,6 +630,11 @@ jobs: | |||
with: | |||
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin | |||
path: target/artifacts | |||
- name: Download staged package artifacts (arm64-apple-darwin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: All these jobs are repetitive. They would benefit from a download-artifacts
job. But that is too big of change for this PR. I will follow-up in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good to me now assuming the Custom Build workflow executes successfully. Could we run than on this branch before merging?
x86_64-*linux*-gnu) | ||
_archive_arch="x86_64-unknown-linux-gnu" | ||
;; | ||
x86_64-*linux*-musl) | ||
_archive_arch="x86_64-unknown-linux-musl" | ||
;; | ||
aarch64-apple-darwin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Kicked off here: https://github.com/vectordotdev/vector/actions/runs/12676670228 |
Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Note: Per our discussion, we will do the homebrew changes after we publish the first ARM release. |
{ | ||
target: "arm64-apple-darwin-tar-gz" | ||
arch: "ARM64" | ||
extra: "apple-darwin" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will 404 on all existing releases. I'm wondering if we need to add some sort of optional version specifier here. Like: version: ">= 0.44.0"
that could be used when rendering the download page to determine if a particular platform should be rendered. This could be follow-up work to this PR (in which case we should just delete this new entry for now to avoid the user confusion from 404s).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Will follow-up in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved for docs, seems other issues persist
676b724
to
dce48a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
* feat(ci): publish ARM macOS builds * typo * rename build job to build-apple-darwin-packages * add comments and link to large runners * add pre-condition for early exit * simplify verification step * small tweaks * add arm64-apple-darwin branches to various jobs (this begs for refactoring) * update distribution/install.sh * Update .github/workflows/publish.yml Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update .github/workflows/publish.yml Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> --------- Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Summary
Follow up to #22134.
We now have access to a GitHub runner which can produce ARM executables.
Change Type
Is this a breaking change?
How did you test this PR?
Does this PR include user facing changes?
Checklist
Cargo.lock
), pleaserun
dd-rust-license-tool write
to regenerate the license inventory and commit the changes (if any). More details here.References
Ref:
aarch64-apple-darwin
#10193