mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
add toolcache ubuntu-20.04 (#1007)
This commit is contained in:
committed by
GitHub
parent
d882e04f8f
commit
b4da84d76e
5
images/linux/toolcache-2004.json
Normal file
5
images/linux/toolcache-2004.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"@actions/toolcache-ruby-ubuntu-2004-x64": [
|
||||||
|
"2.5", "2.6", "2.7"
|
||||||
|
]
|
||||||
|
}
|
||||||
39
images/linux/toolset-2004.json
Normal file
39
images/linux/toolset-2004.json
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"toolcache": [
|
||||||
|
{
|
||||||
|
"name": "Python",
|
||||||
|
"url" : "https://raw.githubusercontent.com/actions/python-versions/master/versions-manifest.json",
|
||||||
|
"platform" : "linux",
|
||||||
|
"platform_version": "20.04",
|
||||||
|
"arch": "x64",
|
||||||
|
"versions": [
|
||||||
|
"2.7.*",
|
||||||
|
"3.5.*",
|
||||||
|
"3.6.*",
|
||||||
|
"3.7.*",
|
||||||
|
"3.8.*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PyPy",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform" : "linux",
|
||||||
|
"versions": [
|
||||||
|
"2.7",
|
||||||
|
"3.6"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "node",
|
||||||
|
"url" : "https://raw.githubusercontent.com/actions/node-versions/master/versions-manifest.json",
|
||||||
|
"platform" : "linux",
|
||||||
|
"arch": "x64",
|
||||||
|
"versions": [
|
||||||
|
"8.*",
|
||||||
|
"10.*",
|
||||||
|
"12.*",
|
||||||
|
"14.*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -256,13 +256,26 @@
|
|||||||
],
|
],
|
||||||
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"source": "{{template_dir}}/toolcache-2004.json",
|
||||||
|
"destination": "{{user `installer_script_folder`}}/toolcache.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"source": "{{template_dir}}/toolset-2004.json",
|
||||||
|
"destination": "{{user `installer_script_folder`}}/toolset.json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{template_dir}}/scripts/installers/2004/android.sh",
|
"{{template_dir}}/scripts/installers/2004/android.sh",
|
||||||
"{{template_dir}}/scripts/installers/azpowershell.sh",
|
"{{template_dir}}/scripts/installers/azpowershell.sh",
|
||||||
"{{template_dir}}/scripts/helpers/containercache.sh",
|
"{{template_dir}}/scripts/helpers/containercache.sh",
|
||||||
"{{template_dir}}/scripts/installers/python.sh"
|
"{{template_dir}}/scripts/installers/hosted-tool-cache.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/pypy.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/python.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/test-toolcache.sh"
|
||||||
],
|
],
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"METADATA_FILE={{user `metadata_file`}}",
|
"METADATA_FILE={{user `metadata_file`}}",
|
||||||
@@ -285,6 +298,19 @@
|
|||||||
],
|
],
|
||||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}"
|
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"scripts":[
|
||||||
|
"{{template_dir}}/scripts/installers/Install-Toolset.ps1",
|
||||||
|
"{{template_dir}}/scripts/installers/Validate-Toolset.ps1"
|
||||||
|
],
|
||||||
|
"environment_vars": [
|
||||||
|
"METADATA_FILE={{user `metadata_file`}}",
|
||||||
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
||||||
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
||||||
|
],
|
||||||
|
"execute_command": "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"scripts":[
|
"scripts":[
|
||||||
|
|||||||
Reference in New Issue
Block a user