diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index fd38bbe48e..9942a0ca28 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -98,15 +98,6 @@ jobs: - name: Git Pull LFS run: git lfs pull - - name: DotNet Setup - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 6.0.x - 5.0.x - 3.1.x - 2.1.x - - name: NuGet Install uses: NuGet/setup-nuget@v1 @@ -118,6 +109,15 @@ jobs: key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }} restore-keys: ${{ runner.os }}-nuget- + - name: DotNet Setup + uses: actions/setup-dotnet@v1 + with: + dotnet-version: | + 6.0.x + 5.0.x + 3.1.x + 2.1.x + - name: DotNet Build if: ${{ matrix.options.sdk-preview != true }} shell: pwsh