babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
2021-02-10T14:04:36.426Z

Can one run bb scripts in a GitHub action? Or would circleci be a better choice?

borkdude 2021-02-10T14:05:20.426300Z

You surely can. There is even an action to install bb: https://github.com/turtlequeue/setup-babashka

🎉 1
borkdude 2021-02-10T14:05:38.427Z

Although installing bb is nothing more than just downloading the binary and unzipping it

2021-02-10T14:05:48.427300Z

Of course :simple_smile:

ericdallo 2021-02-10T14:18:20.428Z

@jayzawrotny check clojure-lsp GH action, we run bb to test integration tests 🙂

ericdallo 2021-02-10T14:18:48.428500Z

that action doesn't support windows yet, but I opened an issue there about that

2021-02-10T14:19:00.428700Z

Perfect

grazfather 2021-02-10T19:57:44.430900Z

that’s cool. What are you planning to do, @jayzawrotny?

2021-02-10T20:00:47.432700Z

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.

2021-02-10T20:01:57.432900Z

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.

borkdude 2021-02-10T20:07:17.433300Z

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.

borkdude 2021-02-10T20:08:07.433500Z

e.g. imagemagick

2021-02-10T20:30:38.433700Z

Ah well that saves me some trouble. Thanks!

borkdude 2021-02-10T20:32:42.433900Z

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

borkdude 2021-02-10T20:33:41.434100Z

And then we could put it in the registry

2021-02-10T20:33:46.434300Z

Worth a shot, plus shifts the project from being 100% selfish to something potentially useful.

borkdude 2021-02-10T20:35:13.434500Z

I think the buddy pod is probably a good starting pod, as it's fairly similar

borkdude 2021-02-10T20:35:33.434700Z

in terms of doing things with bytes

borkdude 2021-02-10T20:38:41.434900Z

but shelling out to some CLI is totally reasonable too, so don't feel pressured!

borkdude 2021-02-10T20:38:59.435100Z

have you seen the ffmpeg babashka video someone recently made?

2021-02-10T20:49:00.435300Z

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.

borkdude 2021-02-10T20:49:18.435500Z

yeah that one is not about a pod, he just shells out, very simply

borkdude 2021-02-10T20:49:38.435700Z

basically how you would do it in bash

2021-02-10T20:50:34.435900Z

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.

borkdude 2021-02-10T21:13:38.436200Z

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

borkdude 2021-02-10T21:14:16.436500Z

at least the unzipping, don't know even if it can zip