Skip to content
3 changes: 2 additions & 1 deletion images/linux/scripts/installers/Install-Toolset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ foreach ($tool in $tools) {
}
}

chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/Python
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/Python
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/node
5 changes: 4 additions & 1 deletion images/linux/scripts/installers/Validate-Toolset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function Run-ExecutableTests {
$ErrorActionPreference = "Stop"

# Define executables for cached tools
$toolsExecutables = @{ Python = @("python", "bin/pip") }
$toolsExecutables = @{
Python = @("python", "bin/pip");
node = @("bin/node", "bin/npm")
}

# Get toolset content
$toolsetJson = Get-Content -Path "$env:INSTALLER_SCRIPT_FOLDER/toolset.json" -Raw
Expand Down
12 changes: 12 additions & 0 deletions images/linux/toolset-1604.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
"3.7.*",
"3.8.*"
]
},
{
"name": "node",
"url" : "https://raw.githubusercontent.com/actions/node-versions/master/versions-manifest.json",
"platform" : "linux",
"arch": "x64",
"versions": [
"8.*",
"10.*",
"12.*",
"14.*"
]
}
]
}
12 changes: 12 additions & 0 deletions images/linux/toolset-1804.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
"3.7.*",
"3.8.*"
]
},
{
"name": "node",
"url" : "https://raw.githubusercontent.com/actions/node-versions/master/versions-manifest.json",
"platform" : "linux",
"arch": "x64",
"versions": [
"8.*",
"10.*",
"12.*",
"14.*"
]
}
]
}
12 changes: 6 additions & 6 deletions images/linux/ubuntu1604.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,6 @@
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
]
},
{
"type": "file",
"source": "{{user `metadata_file`}}",
Expand All @@ -345,6 +339,12 @@
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
]
},
{
"type": "file",
"source": "{{template_dir}}/config/ubuntu1604.conf",
Expand Down
12 changes: 6 additions & 6 deletions images/linux/ubuntu1804.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
]
},
{
"type": "file",
"source": "{{user `metadata_file`}}",
Expand All @@ -349,6 +343,12 @@
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
]
},
{
"type": "file",
"source": "{{template_dir}}/config/ubuntu1804.conf",
Expand Down