vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.3k stars 1.61k forks source link

Add release builds for `aarch64-apple-darwin` #10193

Open jszwedko opened 3 years ago

jszwedko commented 3 years ago

A user tried to install Vector via Homebrew on an M1 Mac but discovered we don't publish binaries for this architecture.

rdooley commented 3 years ago

Tried via homebrew and the quickstart curl script

FlatMapIO commented 2 years ago

aarch64-apple-darwin not found in https://packages.timber.io/vector/0.18.1

spencergilbert commented 2 years ago

aarch64-apple-darwin not found in https://packages.timber.io/vector/0.18.1

Correct, we are not publishing binaries for that arch today, this issue exists to track introducing it. You should be able to build locally if you need to though.

panophobicPanda commented 2 years ago

I'm also interested in a build of vector for M1. I know there are no github runners for M1 yet but would it be possible to cross-compile for M1 on the mac x86_64 image? I'm curious if the team plans to wait for M1 runners or if a different approach is planned.

jszwedko commented 2 years ago

Hi @panophobicPanda ! The framework we use for cross-compilation, cross, does not yet support aarch64-apple-darwin as a platform (https://github.com/cross-rs/cross/issues/508). We do use self-hosted runners in AWS for the Windows builds. I could see us doing the same for M1 Mac builds when they are generally available.

jszwedko commented 2 years ago

Just a note for readers that it is possible to compile Vector natively on M1 Macs (make build).

rdooley commented 2 years ago

Just a note for readers that it is possible to compile Vector natively on M1 Macs (make build).

This is what I've settled on for now and it works great, albeit not as slick.

gaffneyc commented 2 years ago

Just noticed that https://github.com/cross-rs/cross/issues/508 was closed a couple weeks ago. Would be great to see native ARM builds for MacOS

jszwedko commented 2 years ago

👍 AWS also has new support for M1 runners that we may be able to leverage too.

panophobicPanda commented 1 year ago

Since a few things have changed, it seems like there are now a few different options here?

  1. Build with cross-rs
  2. Build on an M1 hosted in AWS (github runner now supports M1)
  3. Build on a hosted github runner (doesn't exist yet)

I wanted to get an idea of timing... are we planning on waiting for #3 ?

jszwedko commented 1 year ago

Since a few things have changed, it seems like there are now a few different options here?

  1. Build with cross-rs
  2. Build on an M1 hosted in AWS (github runner now supports M1)
  3. Build on a hosted github runner (doesn't exist yet)

I wanted to get an idea of timing... are we planning on waiting for #3 ?

We are currently waiting for #3 there, but if there is a way to get it working via cross I'd be interested to see that. We'd like to avoid needing to manage an M1 instance in AWS but if we get more demand for this, that would be another option.

nichtverstehen commented 1 month ago

GitHub now offers macOS runners (since some time): https://github.blog/news-insights/product-news/introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/

Is there anything particular blocking adding Apple Silicon releases?

jszwedko commented 1 month ago

GitHub now offers macOS runners (since some time): https://github.blog/news-insights/product-news/introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/

Is there anything particular blocking adding Apple Silicon releases?

Indeed! Nothing blocking at the moment, I don't think, just time.