diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5032567..f6ba73cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, macos-13, ubuntu-latest] + os: [windows-2022, ubuntu-24.04] env: AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }} @@ -57,8 +57,7 @@ jobs: 3.1 5.0 6.0 - 7.0 - 8.0 + 9.0 - name: Cache Tools uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 @@ -67,12 +66,12 @@ jobs: key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} - name: Build project - uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0 + uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9 # v3 with: script-path: recipe.cake target: CI verbosity: Diagnostic - cake-version: 1.3.0 + cake-version: tool-manifest # currently, Cake.Recipe does not upload artifacts when run on gh-actions - name: Upload Issues diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e7bba606..bb2427d6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -33,6 +33,7 @@ jobs: 6.0 7.0 8.0 + 9.0 - name: Cache Tools uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 @@ -46,11 +47,11 @@ jobs: languages: ${{ matrix.language }} - name: Build project - uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0 + uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9 # v3 with: script-path: recipe.cake target: DotNetCore-Build - cake-version: 1.3.0 + cake-version: tool-manifest - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3 diff --git a/global.json b/global.json index 49857e96..c89ccd43 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.403", + "version": "9.0.300", "rollForward": "latestFeature" } -} \ No newline at end of file +} diff --git a/recipe.cake b/recipe.cake index 183f53dd..1be0a828 100644 --- a/recipe.cake +++ b/recipe.cake @@ -16,12 +16,16 @@ BuildParameters.SetParameters( twitterMessage: standardNotificationMessage, shouldRunCodecov: false, preferredBuildProviderType: BuildProviderType.GitHubActions, - preferredBuildAgentOperatingSystem: PlatformFamily.Linux); + preferredBuildAgentOperatingSystem: PlatformFamily.Linux, + shouldUseTargetFrameworkPath: false); BuildParameters.PrintParameters(Context); ToolSettings.SetToolPreprocessorDirectives( - gitReleaseManagerGlobalTool: "#tool dotnet:?package=GitReleaseManager.Tool&version=0.18.0"); + gitReleaseManagerGlobalTool: "#tool dotnet:?package=GitReleaseManager.Tool&version=0.18.0", + gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.12.0", + reportGeneratorGlobalTool: "#tool dotnet:?package=dotnet-reportgenerator-globaltool&version=5.4.7", + coverallsGlobalTool: "#tool dotnet:?package=coveralls.net&version=4.0.1"); ToolSettings.SetToolSettings(context: Context);