diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 702132f..ee44663 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,10 +49,11 @@ jobs: uses: actions/setup-dotnet@v3.2.0 with: # codecov in cake.recipe needs 2.1! + # version used for GitReleaseManager needs .NET Core 3.0 dotnet-version: | 2.1.x - 3.1.x 5.0.x + 6.0.x - name: Build Addin uses: cake-build/cake-action@v2 with: diff --git a/.github/workflows/pre-release-notes.yml b/.github/workflows/pre-release-notes.yml index bf1f088..31c16c2 100644 --- a/.github/workflows/pre-release-notes.yml +++ b/.github/workflows/pre-release-notes.yml @@ -19,6 +19,15 @@ jobs: with: path: tools key: ${{ runner.os }}-tools-${{ hashFiles('setup.cake') }} + - name: install .NET versions + uses: actions/setup-dotnet@v3.2.0 + with: + # codecov in cake.recipe needs 2.1! + # version used for GitReleaseManager needs .NET Core 3.0 + dotnet-version: | + 2.1.x + 5.0.x + 6.0.x - name: Set up git version if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }} uses: gittools/actions/gitversion/setup@v1.1.1 diff --git a/.github/workflows/publishdocs.yml b/.github/workflows/publishdocs.yml index f68ee2c..74e7689 100644 --- a/.github/workflows/publishdocs.yml +++ b/.github/workflows/publishdocs.yml @@ -23,6 +23,14 @@ jobs: with: path: tools key: ${{ runner.os }}-doc-tools-${{ hashFiles('setup.cake') }} + - name: install .NET versions + uses: actions/setup-dotnet@v3.2.0 + with: + # codecov in cake.recipe needs 2.1! + dotnet-version: | + 2.1.x + 3.1.x + 5.0.x - name: Publishing documentaiton uses: cake-build/cake-action@v2 with: diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index d9bf8bc..3466207 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -19,6 +19,15 @@ jobs: with: path: tools key: ${{ runner.os }}-tools-${{ hashFiles('setup.cake') }} + - name: install .NET versions + uses: actions/setup-dotnet@v3.2.0 + with: + # codecov in cake.recipe needs 2.1! + # version used for GitReleaseManager needs .NET Core 3.0 + dotnet-version: | + 2.1.x + 5.0.x + 6.0.x - name: Set up git version if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }} uses: gittools/actions/gitversion/setup@v1.1.1 @@ -44,4 +53,3 @@ jobs: target: releasenotes verbosity: Diagnostic cake-version: tool-manifest - cake-bootstrap: true diff --git a/setup.cake b/setup.cake index 5e86d94..d87c4e0 100644 --- a/setup.cake +++ b/setup.cake @@ -28,7 +28,10 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, testCoverageFilter: "+[Cake.Codecov]*"); -ToolSettings.SetToolPreprocessorDirectives(codecovTool: "#tool nuget:?package=CodecovUploader&version=0.7.3"); +ToolSettings.SetToolPreprocessorDirectives( + codecovTool: "#tool nuget:?package=CodecovUploader&version=0.7.3", + gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.12.0", + gitReleaseManagerGlobalTool: "#tool dotnet:?package=GitReleaseManager.Tool&version=0.17.0"); // Tasks we want to override ((CakeTask)BuildParameters.Tasks.UploadCodecovReportTask.Task).Actions.Clear();