Can one run bb scripts in a GitHub action? Or would circleci be a better choice?
You surely can. There is even an action to install bb: https://github.com/turtlequeue/setup-babashka
Although installing bb is nothing more than just downloading the binary and unzipping it
Of course :simple_smile:
@jayzawrotny check clojure-lsp GH action, we run bb to test integration tests 🙂
that action doesn't support windows yet, but I opened an issue there about that
Perfect
that’s cool. What are you planning to do, @jayzawrotny?
Hah it’s actually going to be pretty boring but https://github.com/eccentric-j/doom-icon. Right now for each icon I’m taking a .png, and manually creating a .iconset at various sizes, and a .ico. I’m curious what it would take to take a single png for each icon and generate all that.
The plan is to try https://github.com/mikera/imagez for the image resizing with bb and possibly translate https://github.com/redoPop/ico-packer/blob/master/index.js into bb Clojure as well.
I'm pretty sure that lib won't work with bb since bb doesn't have all the classes necessary. I think this would be an ideal candidate for a pod or you could shell out to some CLI programs to do it.
e.g. imagemagick
Ah well that saves me some trouble. Thanks!
It would be cool to have some image utility pod maybe, but I'm not up to date what's the best tool / programming language for that. Maybe you could podify the imagez lib itself, if you feel like
And then we could put it in the registry
Worth a shot, plus shifts the project from being 100% selfish to something potentially useful.
I think the buddy pod is probably a good starting pod, as it's fairly similar
in terms of doing things with bytes
but shelling out to some CLI is totally reasonable too, so don't feel pressured!
have you seen the ffmpeg babashka video someone recently made?
I heard of it but haven’t watched it, I’ll look it up. It sounds useful to know how to put a pod together so I can at least explore that direction and see what happens.
yeah that one is not about a pod, he just shells out, very simply
basically how you would do it in bash
Right, I wrote something kind of in that vein yesterday https://github.com/eccentric-j/doom-icon/blob/master/scripts/release. It generates a .zip of the main icon files, shells out to zip but uses fs for everything else.
ah, zip is one of those things that bb can do btw. but it's probably more convenient to shell out, since there's not really a nice fn for it, you can do it using the interop with java.util.zip
at least the unzipping, don't know even if it can zip
yeah, and for example this one: https://github.com/borkdude/glam/blob/b1d59a5c67aa6ca1e5d04340d4b1c0bc60e8c6a6/src/glam/impl/impl.clj#L35