-
Notifications
You must be signed in to change notification settings - Fork 158
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
feat: Windows release #110
Conversation
Nice 👍 , seems the cross-compile works, and as it already works for mac/linux fine, I would kind of hope that it will work for Win too, would be nice to test though - did you manage to? And I think it will need corresponding |
@stepanstipl yeah will add just wanted to see if cross compile worked |
854fdac
to
8f4c2a6
Compare
@stepanstipl added and removed WIP |
8f4c2a6
to
770719b
Compare
Cool 👍 I think this looks good, I would just like to do a test on a real windows machine to confirm it actually works before merging this (seen various issues with CGO and dns and stuff historically around K8s go-client - saying that I believe it should not be a problem anymore). |
@stepanstipl agreed I don't have a windows machine |
18738df
to
a4a5100
Compare
Hi all, there're some update of this feature? shows "Merging is blocked". Thanks! |
@gerardgorrion apologies, we have been busy. Have you had a chance to try the binary from this build? |
I did a quick test on Win and found 2 issues:
Otherwise hooray 🎉 - seems to work and collect resources! |
b2f928a
to
7c65572
Compare
Ok, this is now a .exe |
2145dc6
to
c38644b
Compare
@stepanstipl this one is all done now just awaiting your review |
d6a35a7
to
cc73a54
Compare
I'm afraid this didn't quite work: $ GOOS=windows GOARCH=amd64 gmake all
...
$ cd release-artifacts
$ tar -xvzf kubent-dev-windows-amd64.tar.gz
x kubent
$ ls
kubent kubent-dev-windows-amd64.tar.gz Seems like the binary in the archive is still called just |
@stepanstipl my bad it looks like it just packing the wrong one, will fix.
|
cc73a54
to
a5fac10
Compare
@stepanstipl this has been fixed:
|
I had to add another nasty if statement tho |
a5fac10
to
81c13b6
Compare
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.
Good stuff, some suggestions:
I would suggest introducing a new variable to avoid 3x repeated if condition (and use make logic):
ifeq (windows,$(GOOS))
BIN_RELEASE_SUFFIX ?= .exe
endif
BIN_RELEASE_SUFFIX ?=
I think it's a bit cleaner. Then we can just change the name in the transform arg:
$(TAR) -cvz --transform 's,$(PACKED_DIR)/$(*)-$(BIN_ARCH),$(*)$(BIN_RELEASE_SUFFIX),gi' -f "$@" "$<"
This has the benefit/disadvantage - depending how you look at it, as compared to the current implementation, of the binary name being consistent, and only appending the .exe
when we build the archive. WDYT?
81c13b6
to
e2f00a2
Compare
0939318
to
a9261d2
Compare
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.
Some minor bits to clean up, but I think it looks good and it's pretty much there! 🎉
Super nice that you used the matrix functionality also for uploading the artefacts! 👍 👍
6817b2d
to
6cc459e
Compare
Signed-off-by: david-doit-intl <david@doit-intl.com>
6cc459e
to
f67adc6
Compare
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.
Looks GOOD!
Closes #108