-
Notifications
You must be signed in to change notification settings - Fork 230
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
makefile support for arm64 packaging #481
Conversation
I don’t think this will build arm64 for release if your goal is released packages. |
|
It does but where is each arch explicitly built? I don't see where you actually build both arches. |
|
Makefile
Outdated
upx -qq ./faktory | ||
upx -qq ./$(NAME) | ||
|
||
xbuild_arm64: clean generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be a separate target. xbuild should build both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but they have the same name...
I can put them in a separte folder, perhaps a subfolder in the output folder?
Is cleaning between arch builds required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arch subfolders seems fine.
Makefile
Outdated
@@ -133,14 +140,20 @@ fmt: ## Format the code | |||
work: ## Run a simple Ruby worker, see also "make run" | |||
cd test/ruby && bundle exec faktory-worker -v -r ./app.rb -q critical -q default -q bulk | |||
|
|||
clean: ## Clean the project, set it up for a new build | |||
clean_project: ## Clean the project, set it up for a new build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a better name, clean and clean_project is just confusing.
Makefile
Outdated
@@ -183,6 +200,22 @@ rpm: xbuild | |||
faktory=/usr/bin/faktory \ | |||
packaging/root/=/ | |||
|
|||
rpm_arm64: xbuild_arm64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be part of rpm, not a separate target.
Makefile
Outdated
@@ -199,6 +232,22 @@ deb: xbuild | |||
faktory=/usr/bin/faktory \ | |||
packaging/root/=/ | |||
|
|||
deb_arm64: xbuild_arm64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Ok, xbuild now builds both archs as
|
Thank you, nice work! |
existing targets work as usual
New targets: