Use trimmed packages to speedup runner updates (#1568)

* consume trimmed packages.

* .

* .

* .

* .
This commit is contained in:
Tingluo Huang
2022-01-10 21:24:55 -05:00
committed by GitHub
parent 3b8475de3e
commit 7616e9b7aa
4 changed files with 1272 additions and 130 deletions

View File

@@ -165,7 +165,15 @@ namespace GitHub.Runner.Common.Tests
switch (directory)
{
case WellKnownDirectory.Bin:
path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
var overwriteBinDir = Environment.GetEnvironmentVariable("RUNNER_L0_OVERRIDEBINDIR");
if (Directory.Exists(overwriteBinDir))
{
path = overwriteBinDir;
}
else
{
path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
}
break;
case WellKnownDirectory.Diag: