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

Add release builds for aarch64-apple-darwin #10193

Open
jszwedko opened this issue Nov 29, 2021 · 11 comments
Open

Add release builds for aarch64-apple-darwin #10193

jszwedko opened this issue Nov 29, 2021 · 11 comments
Labels
platform: macos Anything `macos` platform related type: task Generic non-code related tasks

Comments

@jszwedko
Copy link
Member

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

@jszwedko jszwedko added type: task Generic non-code related tasks platform: macos Anything `macos` platform related labels Nov 29, 2021
@rdooley
Copy link

rdooley commented Nov 29, 2021

Tried via homebrew and the quickstart curl script

@FlatMapIO
Copy link

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

@spencergilbert
Copy link
Contributor

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
Copy link

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
Copy link
Member Author

Hi @panophobicPanda ! The framework we use for cross-compilation, cross, does not yet support aarch64-apple-darwin as a platform (cross-rs/cross#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
Copy link
Member Author

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

@rdooley
Copy link

rdooley commented Feb 15, 2022

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
Copy link

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

@jszwedko
Copy link
Member Author

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

@panophobicPanda
Copy link

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
Copy link
Member Author

jszwedko commented May 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macos Anything `macos` platform related type: task Generic non-code related tasks
Projects
None yet
Development

No branches or pull requests

6 participants