From 73bc1c456a57ae82ca65c333cd8475d092a598a6 Mon Sep 17 00:00:00 2001 From: Rico Suter Date: Thu, 4 May 2023 00:36:23 +0200 Subject: [PATCH] Improve build --- .github/workflows/build.yml | 1 + .github/workflows/pr.yml | 1 + build/Build.CI.GitHubActions.cs | 7 +++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08e505500..6f794ee2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4ae20fc1d..2bcd386bc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/build/Build.CI.GitHubActions.cs b/build/Build.CI.GitHubActions.cs index 202a1dfe5..148ded77b 100644 --- a/build/Build.CI.GitHubActions.cs +++ b/build/Build.CI.GitHubActions.cs @@ -48,8 +48,11 @@ protected override GitHubActionsJob GetJobs(GitHubActionsImage image, IReadOnlyC var newSteps = new List(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());