turtlequeue / setup-babashka

github actions for installing borkdude/babashka
Eclipse Public License 1.0
28 stars 4 forks source link

Windows support #3

Closed ericdallo closed 3 years ago

ericdallo commented 3 years ago

Could you confirm if this would be enough to use with Windows?

iwr -useb get.scoop.sh | iex
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
scoop bucket add extras
scoop install babashka --independent
echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

from here

ericdallo commented 3 years ago

ping @nha

nha commented 3 years ago

Looks promising! I will have a look @ericdallo

nha commented 3 years ago

Looks like it should work @ericdallo ! I am not a scoop/windows user though: do you know if there is a way to specify a version?

scoop install babashka vX.X.X --independent

also do you know what --independent does here? I could not find any doc

ericdallo commented 3 years ago

I'm not a windows user as well 😆, maybe @HUMORCE can help with those questions? Or @borkdude as he has its own babashka appveyor CI

borkdude commented 3 years ago

In some projects I just use these powershell snippets to download and unzip bb.exe:

https://github.com/babashka/pod-babashka-buddy/blob/37ce1185d43e5f5855e56425ee46550a167687c0/appveyor.yml#L48-L50

And then I just call it with bb.exe in the local directory, for the CI build.

nha commented 3 years ago

Seems even simpler without scoop. I'll go with that for now. Thanks !

borkdude commented 3 years ago

The above may not be enough to get bb.exe on the path though, not sure if that is a requirement for this tool.

nha commented 3 years ago

Yes, I just assume the CI tests running bb -version will be enough to fail if that's not the case.

nha commented 3 years ago

Just released v1.2.0 with windows support @ericdallo