Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Build mac arm64 binary #189

Merged
merged 2 commits into from
Dec 22, 2021
Merged

Build mac arm64 binary #189

merged 2 commits into from
Dec 22, 2021

Conversation

StefanScherer
Copy link
Member

Signed-off-by: Stefan Scherer stefan.scherer@docker.com

- What I did

Build a Mac arm64 binary for Docker Desktop to make docker scan work without Rosetta 2.

- How I did it

As GH actions runners don't have arm64 nodes, we have to cross build the binary.

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory)

Screenshot 2021-12-22 at 12 36 42

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
@StefanScherer StefanScherer requested a review from glours December 22, 2021 11:45
@glours
Copy link
Collaborator

glours commented Dec 22, 2021

Unfortunately that's not enough to be able to produce a darwin arm64 binary
https://github.com/docker/scan-cli-plugin/runs/4607290076?check_suite_focus=true#step:7:12

@StefanScherer
Copy link
Member Author

Thanks @glours and I wondered why we have a mixture of setup Go 1.15 and 1.17. I'll update my PR.

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@StefanScherer StefanScherer merged commit 16a6913 into main Dec 22, 2021
@StefanScherer StefanScherer deleted the build-mac-arm64 branch December 22, 2021 16:03
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants