Skip to content

Commit

Permalink
Limit Rids to given platform, needs improvement for osx/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
David Driscoll authored and David Driscoll committed Mar 25, 2016
1 parent 5688b25 commit cd65e41
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ public class BuildPlan
}

var buildPlan = DeserializeJsonFromFile<BuildPlan>($"{workingDirectory}/build.json");
// Limit scope if things we build
buildPlan.Rids = buildPlan.Rids.Where(rid => {
if (IsRunningOnWindows())
{
return rid.StartsWith("win");
}
else
{
// Need to fix this for osx / linux
return !rid.StartsWith("win");
}
}).ToArray();

// Folders and tools
var dotnetFolder = $"{workingDirectory}/{buildPlan.DotNetFolder}";
Expand Down

0 comments on commit cd65e41

Please sign in to comment.