public RunStepResult Failure(BuildSettings settings, string message) => RunStepResult.Failure(settings, this, message);
public virtual bool CanRun(BuildSettings settings, out string reason) { reason = null; return(true); }
public RunStepResult Success(BuildSettings settings, IRunInstance instance) => RunStepResult.Success(settings, this, instance);
public abstract RunStepResult Start(BuildSettings settings);
public void Dispose() { // Work-around for assets that can be garbage collected during a build BuildSettings.GCUnPin(); BuildPipeline.GCUnPin(); }
/// <summary> /// Get the last <see cref="BuildPipelineResult"/> from building the <see cref="BuildSettings"/> specified. /// </summary> /// <param name="settings">The <see cref="BuildSettings"/> that was used to store the <see cref="IBuildArtifact"/>.</param> /// <returns>The <see cref="BuildPipelineResult"/> if found, <see langword="null"/> otherwise.</returns> public static BuildPipelineResult GetBuildResult(BuildSettings settings) => GetArtifactData(settings)?.Result;
/// <summary> /// Get the value of the first <see cref="IBuildArtifact"/> that is assignable to type <typeparamref name="T"/>. /// </summary> /// <typeparam name="T">The type of the <see cref="IBuildArtifact"/>.</typeparam> /// <param name="settings">The <see cref="BuildSettings"/> that was used to store the <see cref="IBuildArtifact"/>.</param> /// <returns>The <see cref="IBuildArtifact"/> if found, <see langword="null"/> otherwise.</returns> public static T GetBuildArtifact <T>(BuildSettings settings) where T : class, IBuildArtifact => (T)GetBuildArtifact(settings, typeof(T));