Summary
Gets the runner architecture of the runner executing the job.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
Syntax
public GitHubActionsArchitecture Architecture { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner Architecture: {0}", BuildSystem.GitHubActions.Environment.Runner.Architecture);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner Architecture: {0}", GitHubActions.Environment.Runner.Architecture);
}
Value
| Type | Description |
|---|---|
| Git |
The runner architecture of the runner executing the job. Possible values are X86, X64, ARM, and ARM64. |
