[Windows] cache most used GitHub actions

* Download actions/action_versions latest release on Windows and set ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE.

* feedback

* fix get latest package on Windows.

* invoke test
This commit is contained in:
Tingluo Huang
2023-10-12 10:43:41 +02:00
committed by GitHub
parent a80012b48e
commit c7517abd08
5 changed files with 43 additions and 2 deletions
+3 -1
View File
@@ -146,6 +146,7 @@
"IMAGE_VERSION={{user `image_version`}}",
"IMAGE_OS={{user `image_os`}}",
"AGENT_TOOLSDIRECTORY={{user `agent_tools_directory`}}",
"ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=C:\\actionarchivecache\\",
"IMAGEDATA_FILE={{user `imagedata_file`}}"
],
"scripts": [
@@ -225,6 +226,7 @@
{
"type": "powershell",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-ActionArchiveCache.ps1",
"{{ template_dir }}/scripts/Installers/Install-Ruby.ps1",
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
@@ -362,4 +364,4 @@
]
}
]
}
}