File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 <option name =" PASS_PARENT_ENVS" value =" 1" />
77 <envs >
88 <env name =" DOTNET_ROLL_FORWARD" value =" Major" />
9+ <env name =" ENABLED_DIAGNOSTICS" value =" false" />
910 </envs >
10- <option name =" USE_EXTERNAL_CONSOLE" value =" 0" />
11+ <option name =" ENV_FILE_PATHS" value =" " />
12+ <option name =" REDIRECT_INPUT_PATH" value =" " />
13+ <option name =" MIXED_MODE_DEBUG" value =" 0" />
1114 <option name =" USE_MONO" value =" 0" />
1215 <option name =" RUNTIME_ARGUMENTS" value =" " />
16+ <option name =" AUTO_ATTACH_CHILDREN" value =" 0" />
1317 <option name =" PROJECT_PATH" value =" $PROJECT_DIR$/build/build.csproj" />
1418 <option name =" PROJECT_EXE_PATH_TRACKING" value =" 1" />
1519 <option name =" PROJECT_ARGUMENTS_TRACKING" value =" 1" />
2024 <option name =" Build" />
2125 </method >
2226 </configuration >
23- </component >
27+ </component >
Original file line number Diff line number Diff line change 11using Build . Utilities ;
22using Common . Lifetime ;
33using Common . Utilities ;
4+ using EnvVars = Build . Utilities . EnvVars ;
45
56namespace Build ;
67
Original file line number Diff line number Diff line change 11namespace Build . Utilities ;
22
3- public class EnvVars
3+ public class EnvVars : Common . Utilities . EnvVars
44{
55 public const string EnabledUnitTests = "ENABLED_UNIT_TESTS" ;
66}
Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ public class BuildLifetimeBase<T> : FrostingLifetime<T> where T : BuildContextBa
99 public override void Setup ( T context , ISetupContext info )
1010 {
1111 var buildSystem = context . BuildSystem ( ) ;
12+ var isDebug = context . IsEnabled ( EnvVars . ActionsRunnerDebug , false ) ;
13+ var isStepDebug = context . IsEnabled ( EnvVars . ActionsStepDebug , false ) ;
14+ var isDiagnosticsEnabled = context . IsEnabled ( EnvVars . EnabledDiagnostics , false ) ;
15+ if ( isDebug || isStepDebug || isDiagnosticsEnabled )
16+ {
17+ context . Log . Verbosity = Verbosity . Diagnostic ;
18+ }
19+
1220 context . IsLocalBuild = buildSystem . IsLocalBuild ;
1321 context . IsAzurePipelineBuild = buildSystem . IsRunningOnAzurePipelines ;
1422 context . IsGitHubActionsBuild = buildSystem . IsRunningOnGitHubActions ;
Original file line number Diff line number Diff line change 1+ namespace Common . Utilities ;
2+
3+ public class EnvVars
4+ {
5+ public const string EnabledDiagnostics = "ENABLED_DIAGNOSTICS" ;
6+ public const string ActionsRunnerDebug = "ACTIONS_RUNNER_DEBUG" ;
7+ public const string ActionsStepDebug = "ACTIONS_STEP_DEBUG" ;
8+ }
You can’t perform that action at this time.
0 commit comments