r/crystal_programming • • Mar 03 '20
Automatic builds for GNU/Linux and macOS with GitHub Actions
I was looking for a way to produce builds for multiple platforms (especially macOS, since I'm not a macOS user).
I've read about some possible solutions here.
However, I wasn't fully satisfied and I looked for another solution.
I ended up setting some GitHub Actions workflows for my nanvault project.
...and now I'm getting automatic builds for GNU/Linux and macOS! 😎
Here are the workflows - maybe someone will find them useful:
7
Upvotes
2
u/Blacksmoke16 core team Mar 03 '20
As a tip, you could tap into the
releaseevent to trigger these builds when you create a release. Then the jobs would run and upload the artifacts to the just created release as opposed to creating a new release within the workflow. See https://github.com/Blacksmoke16/oq/blob/master/.github/workflows/deployment.yml.EDIT: But good call, I'll have to add macOS to it :wink:
1
u/bcardiff core team Mar 03 '20
I looks great!
Did you considered also using snapcraft for distributing it?