Closed ericphanson closed 4 years ago
I don't know of a way to directly interact with the wsl environment through the GitHub SDK. My guess would be that it could be installed by running the usual Julia install bash script within WSL.
Effectively you'd have to run these steps within WSL:
wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.1-linux-x86_64.tar.gz
tar xf <juliaDownloadPath> --strip-components=1 -C ~/julia
~/julia/bin
to PATHA separate (composite) action might be simpler because most of the existing code of setup-julia would have to be refactored as it relies on the OS of the runner to match the OS that Julia will be installed in and makes heavy use of the actions SDK which can't be used here.
Cool, thanks for the information!
Also to use WSL you first have to install a distribution. You can do so using my shiny new setup-wsl action: https://github.com/marketplace/actions/setup-wsl :-)
A separate (composite) action might be simpler because most of the existing code of setup-julia would have to be refactored as it relies on the OS of the runner to match the OS that Julia will be installed in and makes heavy use of the actions SDK which can't be used here.
I thought about it more, I think this is out-of-scope for setup-julia for the reasons above, unless someone else wants to add and maintain it.
Is it possible to use setup-julia for testing Julia packages running on Windows subsystem for linux (WSL) and/or WSL2? I see WSL is in the Github Actions environment (https://github.com/actions/virtual-environments/issues/50), but I'm not sure what's needed on the setup-julia side. Since Julia is now in virtual-environments too,
wsl julia
should just work to launch Julia on WSL, but then we can't specify the Julia versions to test on.