Closed ilopezluna closed 1 year ago
we can use RUNNER_OS
in the script and discover the os automatically :) See GHA env vars
we can also do if $RUNNER_OS == 'macOS' then 'darwin'
.
WDYT?
we can use
RUNNER_OS
in the script and discover the os automatically :) See GHA env varswe can also do
if $RUNNER_OS == 'macOS' then 'darwin'
.WDYT?
Updated, no need to any additional parameter now. Tested in ubuntu-latest, windows-latest, macos-latest & ubuntu-18.04 The inline conditional are not readable at all, I didn't find a better way to do it, let me know if you have any suggestion 🙏
Time to use typescrypt ? :D
This PR is totally optional but I thought it could be useful to be able to specify the OS of the runner instead of using always linux. WDYT?
I also changed the way how the
suffix
is calculated. You can see more details here.If you keep reading in the thread you will see another approach to determine the binary to use (using url aliases), let us know what do you think as well 🙏