Replies: 5 comments 2 replies
-
I'd say that I am dead-set on maintaining Windows compatibility 😆 However, extracting the script(s) into their own files would certainly make this repo's language stats more accurate. If necessary, instead of calling |
Beta Was this translation helpful? Give feedback.
-
You might be right! But, I think there is compelling evidence that Linux (specifically "ubuntu-latest" in this case) is the "defacto standard" for GitHub Actions jobs https://github.com/search?q=runs-on%3A+ubuntu-latest&type=code vs https://github.com/search?q=runs-on%3A+windows-latest&type=code |
Beta Was this translation helpful? Give feedback.
-
This is kinda what I was thinking, but I'm not 100% certain... Why not certain? Because I don't really use soooo uh yeah; I guess being dead-set on Windows compat is fine. Does Docker work on Windows? I know you've mentioned in passing that it doesn't... but is there a GitHub doc or something that we can point at in the readme as to why (or the CONTRIBUTING.md if that ever gets made) to document for others who may happen along and wonder why? it's not done in Docker if we use linux and want to be compat with Windows runners? |
Beta Was this translation helpful? Give feedback.
-
if you want to follow in the footsteps of the official https://github.com/actions , you could use a Node.js-based action like they do for most (all?) of their stuff ex: https://github.com/actions/checkout uses node16 Then you could use something like https://github.com/google/zx to do things like import "zx/globals"
import {} from "@actions/core" // or whatever
const ref = await $`git subtree split -P ${blah}`
// ... all the other magic in JS so you are independent of Windows/Bash/Ubuntu and you just tap
// into git commands when needed Or you could use something like a JS wrapper for the git commands so you don't even have to use the
and btw the official checkout action uses a git js wrapper to do its thing https://github.com/actions/checkout/blob/main/src/git-command-manager.ts so this is treaded ground and might be worth looking into |
Beta Was this translation helpful? Give feedback.
-
to be resolved in #35 so closing this discussion |
Beta Was this translation helpful? Give feedback.
-
If you're dead-set on maintaining Windows compatibility, I think this would require some testing to make sure that
#!/bin/bash
works to then./my-script.sh
on a Windows system. I think it does, but I would still test it to be sure.But realistically, most people are going to use
runs-on: ubuntu-latest
for just this specific action.But hey, there might be a compelling reason that I'm missing!
Beta Was this translation helpful? Give feedback.
All reactions