SetupBuildInfo
Interface: ISetupBuildInfo
Package: DecSm.Atom.Build
The SetupBuildInfo target initialises the build's identity — name, ID, version, and timestamp — and makes them
available as workflow variables.
What It Does
- Reads
BuildName,BuildId,BuildVersion, andBuildTimestampfrom the registered build info providers. - Writes each as a workflow variable:
BuildName,BuildId,BuildVersion,BuildTimestamp. - Adds a "Run Information" section to the build report.
- Logs the values.
Produced Variables
| Variable | Description |
|---|---|
BuildName |
The logical name of the build |
BuildId |
Unique identifier for this run |
BuildVersion |
Semantic version string |
BuildTimestamp |
Timestamp as a string |
Usage
Include SetupBuildInfo as a dependency of your first workflow target:
public override IReadOnlyList<WorkflowDefinition> Workflows =>
[
new("CI")
{
Targets =
[
new(nameof(ISetupBuildInfo.SetupBuildInfo)),
new(nameof(Compile)),
new(nameof(Test)),
],
// ...
},
];
Visibility
This target is marked as hidden — it doesn't appear in default help output but is still executable.