From 943a9fd9822dc37b9bde4eb717fb5b73e3791e3c Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Tue, 26 Mar 2024 16:00:41 -0500 Subject: [PATCH] try to cache vpk --- .github/workflows/dotnet.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9dac81555..32cd8e2d8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -30,12 +30,21 @@ jobs: version: '1.17.2' - uses: actions/checkout@v4 - uses: actions/cache@v4 + name: Restore Nuget Cache with: path: | ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} restore-keys: | - ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} + ${{ runner.os }}-nuget + - uses: actions/cache@v4 + name: Restore dotnet tool Cache + with: + path: | + ~/.dotnet/tools + key: ${{ runner.os }}-dotnet-tools-${{ hashFiles('~/.dotnet/tools/**') }} + restore-keys: | + ${{ runner.os }}-dotnet-tools - name: Setup .NET uses: actions/setup-dotnet@v4 with: