Skip to content

Commit

Permalink
Install consistent .NET SDK versions
Browse files Browse the repository at this point in the history
Check out the repository so our `global.json` version determines what version of the .NET SDK is installed.
  • Loading branch information
martincostello committed Oct 31, 2023
1 parent 26c1011 commit 2fd11ec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ jobs:
with:
name: packages-windows

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

Expand Down Expand Up @@ -142,6 +145,9 @@ jobs:
with:
name: packages-windows

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

Expand Down Expand Up @@ -169,6 +175,9 @@ jobs:
name: signing-config
path: signing-config

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

Expand Down Expand Up @@ -209,8 +218,15 @@ jobs:
with:
name: signed-packages

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: Polly

- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
with:
global-json-file: Polly/global.json

- name: Validate NuGet packages
shell: pwsh
Expand Down Expand Up @@ -308,6 +324,9 @@ jobs:
with:
name: signed-packages

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

Expand Down

0 comments on commit 2fd11ec

Please sign in to comment.