Skip to content

Commit 0f63126

Browse files
Setup dotnet
1 parent 11e9099 commit 0f63126

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16+
- name: Setup dotnet
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: |
20+
6.0.x
21+
8.0.x
1622
- name: Restore dependencies
1723
run: dotnet restore
1824
- name: Build

.github/workflows/pre_release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
Write-Host "::set-output name=shortversion::$version"
2323
shell: pwsh
2424
- uses: actions/checkout@v2
25+
- name: Setup dotnet
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: |
29+
6.0.x
30+
8.0.x
2531
- name: Restore dependencies
2632
run: dotnet restore
2733
- name: Build

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
with:
2121
ref: ${{ inputs.tag != '' && inputs.tag || github.ref }}
2222

23+
- name: Setup dotnet
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: |
27+
6.0.x
28+
8.0.x
29+
2330
- name: Get the version
2431
id: get_version
2532
uses: mavrosxristoforos/[email protected]

0 commit comments

Comments
 (0)