Skip to content

Commit 4daebb8

Browse files
committed
(build) Be explicit about need for .NET 5
The current version of GitVersion.Tool that we are using requires .NET 5.x. While this exists on some of the build images, it would appear that it is being removed from others. This commit explicitly adds the requirement as part of the build setup. Once we upgrade to a newer version of GitVersion.Tool, we should add again the explicit version that is required.
1 parent f8c3399 commit 4daebb8

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
sudo apt update
3030
sudo apt install -y mono-complete
3131
mono --version
32+
- name: Install dotnet #needed for GitVersion
33+
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
34+
with:
35+
dotnet-version: |
36+
5.0.x
37+
- name: Report installed dotnet versions
38+
run: |
39+
dotnet --info
3240
- name: Build with Mono
3341
run: |
3442
chmod +x build.sh
@@ -56,6 +64,14 @@ jobs:
5664
with:
5765
path: tools
5866
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
67+
- name: Install dotnet #needed for GitVersion
68+
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
69+
with:
70+
dotnet-version: |
71+
5.0.x
72+
- name: Report installed dotnet versions
73+
run: |
74+
dotnet --info
5975
- name: Build with .Net Framework
6076
shell: powershell
6177
run: ./build.ps1 --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false --shouldBuildMsi=true
@@ -88,6 +104,14 @@ jobs:
88104
with:
89105
path: tools
90106
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
107+
- name: Install dotnet #needed for GitVersion
108+
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
109+
with:
110+
dotnet-version: |
111+
5.0.x
112+
- name: Report installed dotnet versions
113+
run: |
114+
dotnet --info
91115
- name: Build with Mono
92116
run: |
93117
export DOTNET_ROOT=$HOME/.dotnet

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
sudo apt update
3030
sudo apt install -y mono-complete
3131
mono --version
32+
- name: Install dotnet #needed for GitVersion
33+
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
34+
with:
35+
dotnet-version: |
36+
5.0.x
37+
- name: Report installed dotnet versions
38+
run: |
39+
dotnet --info
3240
- name: Test with NUnit on Mono
3341
run: |
3442
chmod +x build.sh
@@ -55,6 +63,14 @@ jobs:
5563
with:
5664
path: tools
5765
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
66+
- name: Install dotnet #needed for GitVersion
67+
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
68+
with:
69+
dotnet-version: |
70+
5.0.x
71+
- name: Report installed dotnet versions
72+
run: |
73+
dotnet --info
5874
- name: Test with NUnit on .Net Framework
5975
run: .\build.bat --verbosity=diagnostic --target=test --testExecutionType=all --shouldRunOpenCover=false
6076
- name: Upload Windows build results

0 commit comments

Comments
 (0)