|
26 | 26 | - windows-latest |
27 | 27 | - macos-13 # using 13 because it's a bigger machine, and latest is still pointing to 12 |
28 | 28 | - ubuntu-latest |
29 | | - dotnet-version: ["", "8.0.x", "9.0.x"] |
| 29 | + dotnet-version: ["8.0.x", "9.0.x"] |
30 | 30 | use-transparent-compiler: |
31 | 31 | - "TransparentCompiler" |
32 | 32 | - "BackgroundCompiler" |
|
35 | 35 | # - "ProjectGraph" # this is disable because it just adds too much time to the build |
36 | 36 | # these entries will mesh with the above combinations |
37 | 37 | 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 |
45 | 38 | # latest 8.0 |
46 | 39 | - global-json-file: "global.json" |
47 | 40 | dotnet-version: "8.0.x" |
@@ -71,16 +64,18 @@ jobs: |
71 | 64 |
|
72 | 65 | # setup .NET per test session |
73 | 66 | - name: Setup .NET |
| 67 | + id : setup-dotnet |
74 | 68 | uses: actions/setup-dotnet@v3 |
75 | 69 | with: |
76 | | - include-prerelease: ${{ matrix.include-prerelease }} |
77 | | - global-json-file: ${{ matrix.global-json-file }} |
78 | 70 | dotnet-version: ${{ matrix.dotnet-version }} |
79 | 71 |
|
80 | 72 | # remove global.json so that the env configuration takes precedence |
81 | 73 | - name: Purge global.json |
82 | 74 | run: rm global.json |
83 | 75 |
|
| 76 | + - name: Create global.json |
| 77 | + run: dotnet new globaljson --sdk-version '${{ steps.setup-dotnet.outputs.dotnet-version }}' --roll-forward latestMinor |
| 78 | + |
84 | 79 | # let's make sure we're on the version we think we are. |
85 | 80 | - name: Announce .NET version |
86 | 81 | run: dotnet --info |
|
0 commit comments