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

fix(ci): build arm64 #848

Merged
merged 1 commit into from
Dec 5, 2022
Merged

fix(ci): build arm64 #848

merged 1 commit into from
Dec 5, 2022

Conversation

dargmuesli
Copy link
Contributor

Description

Newer Mac computers with their M1 chips use the ARM architecture [1]. Currently there is no docker image for postgraphile published to Docker Hub supporting the arm64 platform, only for amd64. This commit adds compilation for an ARM image as well, so that developers on newer Mac computers can use postgraphile inside a container as well.

[1] https://en.wikipedia.org/wiki/Apple_M1

Performance impact

The build time will be longer. Especially cross-platform compilation for ARM will take longer than AMD compilation on AMD ci workers due to necessary QEMU virtualization.

Additional info

I chose fix as the type, as it does not really add a new feature to tusd but adds a missing platform for Mac.

Newer Mac computers with their M1 chips use the ARM architecture [1]. Currently there is no docker image for postgraphile published to Docker Hub supporting the `arm64` platform, only for `amd64`. This commit adds compilation for an ARM image as well, so that developers on newer Mac computers can use postgraphile inside a container as well.

[1] https://en.wikipedia.org/wiki/Apple_M1
@dargmuesli
Copy link
Contributor Author

dargmuesli commented Nov 8, 2022

In my testing it was not necessary to add a QEMU setup instruction to the ci script for this project.

@dargmuesli
Copy link
Contributor Author

@Acconut anything I can help you with to get this merged? 🙌

Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@Acconut Acconut merged commit eeffabf into tus:master Dec 5, 2022
@dargmuesli dargmuesli deleted the arm64 branch December 5, 2022 20:01
@dargmuesli
Copy link
Contributor Author

Thanks as well! Would you mind pushing a v1.10.1 containing this addition maybe if it does not require much manual work? 🙏

@Acconut
Copy link
Member

Acconut commented Jan 18, 2023

@dargmuesli A new release is available: https://github.com/tus/tusd/releases/tag/v1.10.1

@dargmuesli
Copy link
Contributor Author

Great! Thank you very much @Acconut <3

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