88
99jobs :
1010 linux :
11- name : Linux – ${{ matrix.arch }} (.NET ${{ matrix[" dotnet-version"] }})
11+ name : Linux – ${{ matrix.arch }} (.NET ${{ matrix. dotnet }})
1212 runs-on : ubuntu-latest
1313
1414 strategy :
1515 fail-fast : false
1616 matrix :
17- dotnet-version : [8.0.x, 9.0.x]
17+ dotnet : [8.0.x, 9.0.x]
1818 include :
1919 - arch : x64
2020 runtime : linux-x64
@@ -33,10 +33,10 @@ jobs:
3333 - name : Checkout source
3434 uses : actions/checkout@v4
3535
36- - name : Setup .NET SDK ${{ matrix[" dotnet-version"] }}
36+ - name : Setup .NET SDK ${{ matrix. dotnet }}
3737 uses : actions/setup-dotnet@v4
3838 with :
39- dotnet-version : ${{ matrix[" dotnet-version"] }}
39+ dotnet-version : ${{ matrix. dotnet }}
4040
4141 - name : Setup QEMU
4242 if : ${{ matrix.qemu }}
@@ -49,13 +49,13 @@ jobs:
4949 - name : Build and Test (${{ matrix.runtime }})
5050 shell : bash
5151 run : |
52- echo "=== Building and Testing for ${{ matrix.runtime }} (.NET ${{ matrix[" dotnet-version"] }}) ==="
52+ echo "=== Building and Testing for ${{ matrix.runtime }} (.NET ${{ matrix. dotnet }}) ==="
5353
5454 if [[ "${{ matrix.qemu }}" == "true" ]]; then
5555 docker run --rm \
5656 --platform ${{ matrix.platform }} \
5757 -v $PWD:/src -w /src \
58- mcr.microsoft.com/dotnet/sdk:${{ matrix[" dotnet-version"] %.* }} \
58+ mcr.microsoft.com/dotnet/sdk:${{ matrix. dotnet%.* }} \
5959 bash -c "dotnet restore && dotnet build -c Release --runtime ${{ matrix.runtime }} && dotnet test -c Release --runtime ${{ matrix.runtime }} --no-build"
6060 else
6161 dotnet restore
@@ -64,27 +64,27 @@ jobs:
6464 fi
6565
6666 windows :
67- name : Windows – x64 (.NET ${{ matrix[" dotnet-version"] }})
67+ name : Windows – x64 (.NET ${{ matrix. dotnet }})
6868 runs-on : windows-latest
6969
7070 strategy :
7171 fail-fast : false
7272 matrix :
73- dotnet-version : [8.0.x, 9.0.x]
73+ dotnet : [8.0.x, 9.0.x]
7474
7575 steps :
7676 - name : Checkout source
7777 uses : actions/checkout@v4
7878
79- - name : Setup .NET SDK ${{ matrix[" dotnet-version"] }}
79+ - name : Setup .NET SDK ${{ matrix. dotnet }}
8080 uses : actions/setup-dotnet@v4
8181 with :
82- dotnet-version : ${{ matrix[" dotnet-version"] }}
82+ dotnet-version : ${{ matrix. dotnet }}
8383
8484 - name : Build and Test (win-x64)
8585 shell : pwsh
8686 run : |
87- Write-Host "=== Building and Testing for win-x64 (.NET ${{ matrix[" dotnet-version"] }}) ==="
87+ Write-Host "=== Building and Testing for win-x64 (.NET ${{ matrix. dotnet }}) ==="
8888 dotnet restore
8989 dotnet build -c Release --runtime win-x64
9090 dotnet test -c Release --runtime win-x64 --no-build
0 commit comments