@@ -2,14 +2,6 @@ name: Build
22
33on :
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
0 commit comments