From 9ca6e435b1505dc867af4ee02e835befd9fd7d85 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Fri, 13 Jun 2025 22:52:11 +0200 Subject: [PATCH 1/3] (#276) enable building on Ubuntu --- recipe.cake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipe.cake b/recipe.cake index 183f53dd..399d411f 100644 --- a/recipe.cake +++ b/recipe.cake @@ -16,12 +16,14 @@ 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"); ToolSettings.SetToolSettings(context: Context); From 2138acbbcf9df3ee08b34883b92af31b840bbf33 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Fri, 13 Jun 2025 22:53:10 +0200 Subject: [PATCH 2/3] (#276) Disable builds on macos --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5032567..b5f0a396 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-latest, ubuntu-latest] env: AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }} From 65919bc3880a5f22e2ac35a03a3420a76709d566 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Fri, 13 Jun 2025 23:10:14 +0200 Subject: [PATCH 3/3] (#276) fix "No usable version of libssl was found" --- .github/workflows/build.yml | 9 ++++----- .github/workflows/codeql-analysis.yml | 5 +++-- global.json | 4 ++-- recipe.cake | 4 +++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5f0a396..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, 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 399d411f..1be0a828 100644 --- a/recipe.cake +++ b/recipe.cake @@ -23,7 +23,9 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolPreprocessorDirectives( gitReleaseManagerGlobalTool: "#tool dotnet:?package=GitReleaseManager.Tool&version=0.18.0", - gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.12.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);