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

Support architectures in the build/release side #682

Merged
merged 24 commits into from
Dec 14, 2020

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Dec 12, 2020

Update the build/release process to support creating darwin universal binaries. This requires building on an m1 machine, with go installed at the specified paths.

To make this a bit smoother, it also updates a handful of the abstractions across our build tools.

This will likely get smoother as the m1 ecosystem evolves.

@directionless directionless marked this pull request as ready for review December 14, 2020 16:50
Makefile Show resolved Hide resolved
launchas-osqueryi-tables: table.ext
sudo launchctl asuser 0 osqueryd -S --allow-unsafe --verbose --extension ./build/darwin/tables.ext
# Actual release targets. Because of the m1 cgo cross stuff, this requires explicit go paths
rel-amd64: CROSSGOPATH = /Users/seph/go1.15.6.darwin-amd64/bin/go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be ~/go1.14.6.darwin-amd64/bin/go or does the path need to be that specific?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could probably use ~. Once there's a real m1 release, I expect we'll drop these into nicer paths anyhow

@directionless directionless merged commit 379665c into kolide:master Dec 14, 2020
@directionless directionless deleted the seph/universal-builds branch December 14, 2020 20:39
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