Skip to content

Commit 4359e49

Browse files
authored
add note about no official support for windows
1 parent 3631fc1 commit 4359e49

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

main.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
set -ex
33

44
if [[ $RUNNER_OS == Windows ]]; then
5+
echo "There is no official way to run code-server on Windows. Try using "
6+
echo "'runs-on: ubuntu-latest' if you encounter problems."
57
pushd "$(mktemp -d)"
6-
export FORCE_NODE_VERSION=18
8+
npm install -g node-gyp
9+
export FORCE_NODE_VERSION=$(node -p process.versions.node)
710
old_script_shell=$(npm config get script-shell)
811
npm config set script-shell 'C:\Program Files\Git\bin\bash.exe'
912
npm install --global "code-server@$INPUT_CODE_SERVER_VERSION" --unsafe-perm

0 commit comments

Comments
 (0)