Skip to content

Commit

Permalink
Add and use global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
si618 committed Mar 11, 2024
1 parent 237fe8b commit 2bd82af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ on:

env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_VERSION: 8.0.x
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
build:
Expand All @@ -22,7 +21,7 @@ jobs:
- name: 🔨 Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: ./global.json

- name: 🏗️ Run dotnet build
id: build
Expand All @@ -42,7 +41,7 @@ jobs:
- name: 🔨 Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: ./global.json

- name: 🎨 List benchmarks
id: list-benchmarks
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "8.0.201",
"rollForward": "latestMinor",
"allowPrerelease": true
}
}

0 comments on commit 2bd82af

Please sign in to comment.