Skip to content

Commit 1562570

Browse files
committed
Merge branch 'release/10.0.0'
* release/10.0.0: (#151) Add net10.0 as targetframework chore(deps): update cake monorepo to v6 chore(deps): update dependency microsoft.net.test.sdk to v18 chore(deps): update dependency microsoft.net.test.sdk to 17.14.1 chore(deps): update dependency xunit.runner.visualstudio to v3 chore(deps): update actions/checkout action to v6 chore(deps): update dependency nsubstitute to 5.3.0 chore(deps): pin dependencies (build) Fix target name (build) Remove macos-14 build (build) Overhaul workflows
2 parents d797265 + 2d7954d commit 1562570

File tree

7 files changed

+114
-86
lines changed

7 files changed

+114
-86
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: Build
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- develop
8-
- "feature/**"
9-
- "release/**"
10-
- "hotfix/**"
11-
tags:
12-
- "*"
135
paths-ignore:
146
- "README.md"
157
pull_request:
@@ -19,16 +11,18 @@ jobs:
1911
runs-on: ${{ matrix.os }}
2012
strategy:
2113
matrix:
22-
os: [windows-latest, ubuntu-24.04, macos-13]
14+
os: [ windows-2025, ubuntu-24.04 ]
2315

2416
env:
2517
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
2618
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
2719
AZURE_USER: ${{ secrets.AZURE_USER }}
2820
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
21+
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
2922
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
3023
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
3124
GPR_USER: ${{ secrets.GPR_USER }}
25+
GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
3226
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
3327
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
3428
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
@@ -38,59 +32,59 @@ jobs:
3832
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
3933
WYAM_DEPLOY_BRANCH: "gh-pages"
4034
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
41-
35+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4236
steps:
4337
- name: Checkout the repository
44-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
45-
46-
- name: Fetch all tags and branches
47-
run: git fetch --prune --unshallow
48-
49-
- name: Cache Tools
50-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
38+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
5139
with:
52-
path: tools
53-
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }}
54-
55-
# install libgit2-dev on ubuntu, so libgit2sharp works
56-
- name: Install libgit-dev
57-
if: runner.os == 'Linux'
58-
run: sudo apt-get install -y libgit2-dev
40+
fetch-depth: 0
5941

60-
- name: Setup required dotnet versions
61-
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
42+
- name: Install dotnet
43+
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5
6244
with:
6345
dotnet-version: |
64-
2.1.818
65-
3.1.x
66-
5.0.x
6746
6.0.x
6847
7.0.x
6948
8.0.x
7049
9.0.x
71-
# Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe
72-
- name: Install Mono
73-
if: ${{ matrix.os == 'ubuntu-24.04' }}
74-
run: sudo apt-get install mono-complete
50+
10.0.x
51+
52+
- name: Install mono
53+
if: runner.os == 'Linux'
54+
# check https://www.mono-project.com/download/stable/#download-lin
55+
run: |
56+
sudo apt install ca-certificates gnupg
57+
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
58+
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
59+
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
60+
sudo apt update
61+
sudo apt install -y mono-complete
62+
mono --version
63+
64+
- name: Cache Tools
65+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
66+
with:
67+
path: tools
68+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
69+
7570
- name: Build project
76-
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
71+
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
7772
with:
78-
cake-bootstrap: explicit
7973
script-path: recipe.cake
8074
target: CI
8175
verbosity: Normal
8276
cake-version: tool-manifest
8377

8478
- name: Upload Issues-Report
85-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
79+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
8680
with:
8781
if-no-files-found: warn
88-
name: ${{ matrix.os }} Issues
82+
name: ${{ matrix.os }} issues
8983
path: BuildArtifacts/report.html
9084

9185
- name: Upload Packages
9286
if: runner.os == 'Windows'
93-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
87+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
9488
with:
9589
if-no-files-found: warn
9690
name: package

.github/workflows/codeql-analysis.yml

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
branches: [develop]
1414
schedule:
1515
- cron: '0 15 * * 6'
16+
workflow_dispatch:
1617

1718
jobs:
1819
analyze:
@@ -30,47 +31,70 @@ jobs:
3031

3132
steps:
3233
- name: Checkout repository
33-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
34+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
3435
with:
3536
fetch-depth: 0
3637

37-
# install libgit2-dev on ubuntu, so libgit2sharp works
38-
- name: Install libgit-dev
39-
if: runner.os == 'Linux'
40-
run: sudo apt-get install -y libgit2-dev
41-
42-
- name: Setup required dotnet versions
43-
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
38+
- name: Install dotnet
39+
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5
4440
with:
41+
# codecov needs 2.1
42+
# unittests needs 3.1
43+
# gitversion needs 5.0
4544
dotnet-version: |
46-
2.1.818
45+
2.1.x
4746
3.1.x
4847
5.0.x
4948
6.0.x
5049
7.0.x
5150
8.0.x
52-
9.0.x
53-
# Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe
54-
- name: Install Mono
55-
if: ${{ matrix.os == 'ubuntu-24.04' }}
56-
run: sudo apt-get install mono-complete
57-
# If this run was triggered by a pull request event, then checkout
58-
# the head of the pull request instead of the merge commit.
59-
- run: git checkout HEAD^2
60-
if: ${{ github.event_name == 'pull_request' }}
51+
52+
- name: Cache Tools
53+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
54+
with:
55+
path: tools
56+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
57+
58+
- name: Install mono
59+
if: runner.os == 'Linux'
60+
# check https://www.mono-project.com/download/stable/#download-lin
61+
run: |
62+
sudo apt install ca-certificates gnupg
63+
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
64+
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
65+
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
66+
sudo apt update
67+
sudo apt install -y mono-complete
68+
mono --version
6169
6270
# Initializes the CodeQL tools for scanning.
6371
- name: Initialize CodeQL
64-
uses: github/codeql-action/init@755f44910c12a3d7ca0d8c6e42c048b3362f7cec # v3
72+
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4
6573
with:
6674
languages: ${{ matrix.language }}
6775
# If you wish to specify custom queries, you can do so here or in a config file.
68-
# By default, queries listed here will override any specified in a config file.
76+
# By default, queries listed here will override any specified in a config file.
6977
# Prefix the list here with "+" to use these queries and those in the config file.
7078
# queries: ./path/to/local/query, your-org/your-repo/queries@main
7179

72-
- run: ./build.ps1
73-
shell: pwsh
80+
- name: Build project
81+
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
82+
with:
83+
script-path: recipe.cake
84+
target: DotNet-Build
85+
cake-version: tool-manifest
86+
env:
87+
COMPlus_DbgEnableMiniDump: 1
88+
COMPlus_DbgMiniDumpType: 1
89+
COMPlus_DbgMiniDumpName: BuildArtifacts/coredump.dmp
7490

7591
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@755f44910c12a3d7ca0d8c6e42c048b3362f7cec # v3
92+
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4
93+
94+
- name: Upload CoreDump
95+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
96+
if: failure()
97+
with:
98+
if-no-files-found: warn
99+
name: CoreDump
100+
path: BuildArtifacts/coredump.dmp

.github/workflows/publishDocs.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,37 @@ env:
1111

1212
jobs:
1313
cake:
14-
runs-on: ubuntu-24.04
14+
runs-on: ubuntu-latest
1515

1616
steps:
1717
- name: checkout
18-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 #https://github.com/actions/checkout
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 #https://github.com/actions/checkout
1919
with:
2020
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....
2121
ref: ${{ github.event.ref }}
22-
22+
23+
- name: Install mono
24+
if: runner.os == 'Linux'
25+
# check https://www.mono-project.com/download/stable/#download-lin
26+
run: |
27+
sudo apt install ca-certificates gnupg
28+
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
29+
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
30+
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
31+
sudo apt update
32+
sudo apt install -y mono-complete
33+
mono --version
34+
2335
- name: Cache Tools
2436
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
2537
with:
2638
path: tools
2739
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}
2840

2941
- name: Publishing documentation
30-
uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1
42+
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
3143
with:
3244
script-path: recipe.cake
3345
target: Force-Publish-Documentation
3446
verbosity: Diagnostic
35-
cake-version: 0.38.5
36-
cake-bootstrap: true
47+
cake-version: tool-manifest

.github/workflows/release-notes.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,40 @@ jobs:
77
draft-stable:
88
env:
99
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
10-
runs-on: ubuntu-24.04
10+
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Checkout the requested branch
14-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
15-
- name: Fetch all tags and branches
16-
run: git fetch --prune --unshallow
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
15+
with:
16+
fetch-depth: 0
1717
- name: Cache Tools
1818
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
1919
with:
2020
path: tools
2121
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
2222
- name: Set up git version
2323
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
24-
uses: gittools/actions/gitversion/setup@a94a3b62ee018ef5346cb08fd0d63d93811fe691 # v3.0.0
24+
uses: gittools/actions/gitversion/setup@d0139503a9321f76b4a417dfdc8aebcec24decdd # v4.2.0
2525
with:
2626
versionSpec: "5.x"
2727
- name: Run git version
2828
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
2929
id: gitversion
30-
uses: gittools/actions/gitversion/execute@a94a3b62ee018ef5346cb08fd0d63d93811fe691 # v3.0.0
30+
uses: gittools/actions/gitversion/execute@d0139503a9321f76b4a417dfdc8aebcec24decdd # v4.2.0
3131
- name: Create release branch ${{ github.event.inputs.version }}
3232
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
3333
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
3434
- name: Push new branch
3535
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
36-
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
36+
uses: ad-m/github-push-action@77c5b412c50b723d2a4fbc6d71fb5723bcd439aa # v1.0.0
3737
with:
3838
branch: "release/${{ steps.gitversion.outputs.majorMinorPatch }}"
3939
github_token: ${{ secrets.GH_TOKEN }}
4040
- name: Drafting Release Notes
41-
uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1
41+
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
4242
with:
4343
script-path: recipe.cake
4444
target: releasenotes
4545
verbosity: Diagnostic
46-
cake-version: 0.38.5
47-
cake-bootstrap: true
46+
cake-version: tool-manifest

src/Cake.AppVeyor.Tests/Cake.AppVeyor.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Cake.Testing" Version="5.0.0" />
8+
<PackageReference Include="Cake.Testing" Version="6.0.0" />
99
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
1010
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1111
<PrivateAssets>all</PrivateAssets>
1212
</PackageReference>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1414
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
<PrivateAssets>all</PrivateAssets>
1717
</PackageReference>
18-
<PackageReference Include="NSubstitute" Version="5.1.0" />
18+
<PackageReference Include="NSubstitute" Version="5.3.0" />
1919
<PackageReference Include="Refit" version="9.0.2" />
2020
<PackageReference Include="xunit" Version="2.9.3" />
21-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
21+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

src/Cake.AppVeyor/Cake.AppVeyor.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<IncludeSymbols>true</IncludeSymbols>
77
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
@@ -32,8 +32,8 @@
3232
</ItemGroup>
3333

3434
<ItemGroup>
35-
<PackageReference Include="Cake.Common" Version="5.0.0" PrivateAssets="All" />
36-
<PackageReference Include="Cake.Core" Version="5.0.0" PrivateAssets="All" />
35+
<PackageReference Include="Cake.Common" Version="6.0.0" PrivateAssets="All" />
36+
<PackageReference Include="Cake.Core" Version="6.0.0" PrivateAssets="All" />
3737
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
3838
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3939
<PrivateAssets>all</PrivateAssets>

test.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#reference "BuildArtifacts/temp/_PublishedLibraries/Cake.AppVeyor/net9.0/Cake.AppVeyor.dll"
1+
#reference "BuildArtifacts/temp/_PublishedLibraries/Cake.AppVeyor/net10.0/Cake.AppVeyor.dll"
22
#addin nuget:?package=Refit&version=9.0.2
33

44
public class BuildData

0 commit comments

Comments
 (0)