Skip to content

Commit becea2a

Browse files
committed
fix globaljson nonsense
1 parent b794214 commit becea2a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ jobs:
3535
# - "ProjectGraph" # this is disable because it just adds too much time to the build
3636
# these entries will mesh with the above combinations
3737
include:
38-
# just use what's in the repo
39-
- global-json-file: "global.json"
40-
dotnet-version: ""
41-
include-prerelease: false
42-
label: "repo global.json"
43-
build_net9: false
44-
test_tfm: net8.0
4538
# latest 8.0
4639
- global-json-file: "global.json"
4740
dotnet-version: "8.0.x"
@@ -71,16 +64,18 @@ jobs:
7164

7265
# setup .NET per test session
7366
- name: Setup .NET
67+
id : setup-dotnet
7468
uses: actions/setup-dotnet@v3
7569
with:
76-
include-prerelease: ${{ matrix.include-prerelease }}
77-
global-json-file: ${{ matrix.global-json-file }}
7870
dotnet-version: ${{ matrix.dotnet-version }}
7971

8072
# remove global.json so that the env configuration takes precedence
8173
- name: Purge global.json
8274
run: rm global.json
8375

76+
- name: Create global.json
77+
run: dotnet new globaljson --sdk-version '${{ steps.setup-dotnet.outputs.dotnet-version }}' --roll-forward latestMinor
78+
8479
# let's make sure we're on the version we think we are.
8580
- name: Announce .NET version
8681
run: dotnet --info

0 commit comments

Comments
 (0)