kcrawford / dockutil

command line tool for managing dock items
http://patternbuffer.wordpress.com
Apache License 2.0
1.36k stars 131 forks source link

PoC: Add GitHub actions workflow #152

Open rgl opened 1 year ago

rgl commented 1 year ago

This adds a GitHub actions workflow to build the binary and release it as a GitHub Release.

As an example, I did a workflow run at https://github.com/rgl/dockutil/actions and a GitHub Release at https://github.com/rgl/dockutil/releases (where you can also see the tarballs with the binaries).

~This is currently a PoC and it only supports the x86_64 architecture. But if this change is welcomed, I will, with your help, expand it to also build for the arm64 architecture and release the binaries as two different tar balls.~ This now builds x86_64 and arm64 binaries and packages them inside a tarball.

The only thing missing is the applying the version. Maybe the version could come from the git repository tag. Let me known what you think.

Please note that is currently based on the https://github.com/kcrawford/dockutil/pull/131, which I think, should also be merged; once that happens I'll rebase this PR over it.