This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-01
Channels
- # announcements (11)
- # babashka (71)
- # beginners (34)
- # calva (25)
- # chlorine-clover (38)
- # cider (13)
- # clj-kondo (1)
- # cljsrn (2)
- # clojure (40)
- # clojure-australia (4)
- # clojure-europe (16)
- # clojure-france (3)
- # clojure-nl (4)
- # clojure-uk (16)
- # clojurescript (27)
- # conjure (2)
- # core-async (41)
- # core-logic (3)
- # cursive (1)
- # data-science (1)
- # datomic (16)
- # depstar (19)
- # emacs (7)
- # fulcro (33)
- # graalvm (4)
- # honeysql (20)
- # hugsql (4)
- # jobs (1)
- # juxt (4)
- # off-topic (48)
- # pathom (41)
- # reagent (9)
- # reitit (19)
- # remote-jobs (1)
- # shadow-cljs (20)
- # startup-in-a-month (2)
- # tools-deps (29)
- # vim (3)
- # xtdb (30)
How do you read from environment vars in babashka? Looked at https://book.babashka.org/ but didn’t find any examples.
@U04V15CAJ any reason to use appveyor instead of windows Github Action image?
I don't know if there is anything missing from the GH image, just wondering if the same work could be done there
And I have already figured that out, GH probably works, but I'm not interested in GH actions per se
Thanks, I'll give a try on GH to follow the repo standard, I'll let you know if it works
@UKFSJSM38, all rewrite-clj v1 scripts are written in babashka and run on linux, macOS and Windows via GitHub Actions. https://github.com/clj-commons/rewrite-clj/blob/f640a38d9267adb0a6a7e06453a13402aa61c9b1/.github/workflows/unit-test.yml#L64.
Cool, thanks @UE21H2HHD
@UE21H2HHD this is not about installing bb, it's about compiling a graalvm project on Windows, but thanks :)
Unless I am still misunderstanding (which is entirely possible), maybe this will help? I do graalvm native-image on GitHub Actions on macOS, linux and Windows for rewrite-clj. https://github.com/clj-commons/rewrite-clj/blob/18d772889dfbd7680fa255ec3eca916912d733cb/.github/workflows/native-image-test.yml
Yes, that is very helpful. This is indeed the gnarly bit I do on appveyor as well: https://github.com/clj-commons/rewrite-clj/blob/18d772889dfbd7680fa255ec3eca916912d733cb/.github/workflows/native-image-test.yml#L112-L116
Also I never did figure out what was needed to setup for GraalVM native-image JDK8 for GitHub Actions on Windows so I only do JDK11.
https://github.com/babashka/babashka/blob/23e12a11ee5c42b3c0ab3ffb39777409c9451dbe/appveyor.yml#L45
It has some https://www.graalvm.org/docs/getting-started/windows/ that I did not work to figure out how to setup on GitHub Actions:
> For GraalVM based on JDK 8, you will need MSVC 2010 SP1 version. The recommended installation method is using Microsoft Windows SDK 7.1:
>
> 1. Download the SDK file GRMSDKX_EN_DVD.iso
for from https://www.microsoft.com/en-gb/download.
> 2. Mount the image by opening F:\Setup\SDKSetup.exe
directly.
Going forward I only use 11 unless there's some weird bug which requires my to use 8
Yeah, I could probably drop GraalVM JDK8 testing entirely now for rewrite-clj v1. Even more attractive how that reflection fixups aren’t needed anymore for JDK11.
Oh that action for setupping graalvm is useful too, since it checks automatically the os running
I managed to make a GH action windows build compiling the native image 😄 https://github.com/clojure-lsp/clojure-lsp/blob/master/.github/workflows/release.yml#L235-L279
We could move https://github.com/clj-commons/rewrite-clj/blob/f640a38d9267adb0a6a7e06453a13402aa61c9b1/.github/workflows/unit-test.yml#L64 to a Github Action: https://github.com/babashka/babashka/issues/723 🙂
@UKFSJSM38 there is one here: https://github.com/turtlequeue/setup-babashka
You can usually find these things on this page: https://github.com/babashka/babashka/blob/master/doc/projects.md
Soon, we'd could add clojure-lsp
there 😜
https://github.com/babashka/babashka/blob/master/doc/projects.md
Just found this: https://github.com/turtlequeue/setup-babashka/blob/55a7551ea77834621fcfcf600782c42b62eb69c9/src/installer.ts#L61
we could just copy and paste the @UE21H2HHD windows install and add support for it
There isn't much to installing bb. You just download the binary, unzip it, and that's basically it
This is the linux/macOS install script https://github.com/babashka/babashka/blob/master/install
Yeah, I know, is just that logic of knowing which OS is would be better to be in the action
Also opened this to make the action perfect in the future: https://github.com/turtlequeue/setup-babashka/issues/3
@jayzawrotny found out that this CSS-producing lib works with babashka: https://github.com/cdaddr/gaka