Description
.NET installations aren't being cached even when the same version remains the same between workflow runs.
Details
I have a workflow that uses .NET Core 2.1, 3.1 and 5.0 side-by-side and it has been downloading and installing these versions even when they haven't changed in different workflow runs:
# workflow.yml
name: Test
on: [push, pull_request]
jobs:
build:
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1'
- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1'
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100-rc.1.20452.10'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build
3 runs with the same versions:
- https://github.com/GGG-KILLER/GParse/runs/1328132497?check_suite_focus=true
- https://github.com/GGG-KILLER/GParse/runs/1328139624?check_suite_focus=true
- https://github.com/GGG-KILLER/GParse/runs/1328149289?check_suite_focus=true
In all of these runs the installation wasn't cached.
This seems to be a regression, since before this action started using install-dotnet.sh/install-dotnet.ps1 they were being cached and the README still states that the installed versions should be cached.
Description
.NET installations aren't being cached even when the same version remains the same between workflow runs.
Details
I have a workflow that uses .NET Core 2.1, 3.1 and 5.0 side-by-side and it has been downloading and installing these versions even when they haven't changed in different workflow runs:
3 runs with the same versions:
In all of these runs the installation wasn't cached.
This seems to be a regression, since before this action started using
install-dotnet.sh/install-dotnet.ps1they were being cached and the README still states that the installed versions should be cached.