Skip to content

Commit

Permalink
Improve build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Suter committed May 3, 2023
1 parent 82708d1 commit 73bc1c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -44,6 +44,7 @@ jobs:
with:
dotnet-version: |
2.1.*
5.0.*
- uses: actions/checkout@v3
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Expand Up @@ -42,6 +42,7 @@ jobs:
with:
dotnet-version: |
2.1.*
5.0.*
- uses: actions/checkout@v3
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
Expand Down
7 changes: 5 additions & 2 deletions build/Build.CI.GitHubActions.cs
Expand Up @@ -48,8 +48,11 @@ protected override GitHubActionsJob GetJobs(GitHubActionsImage image, IReadOnlyC
var newSteps = new List<GitHubActionsStep>(job.Steps);

// only need to list the ones that are missing from default image
newSteps.Insert(0, new GitHubActionsSetupDotNetStep(new[] { "2.1.*" }));
newSteps.Insert(0, new GitHubActionsSetupDotNetStep(new[] { "5.0.*" }));
newSteps.Insert(0, new GitHubActionsSetupDotNetStep(new[]
{
"2.1.*",
"5.0.*"
}));

newSteps.Insert(0, new GitHubActionsUseGnuTarStep());
newSteps.Insert(0, new GitHubActionsConfigureLongPathsStep());
Expand Down

0 comments on commit 73bc1c4

Please sign in to comment.