From 678c76edbc31ea913cc1912c4df5dc99ebbfa5bf Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:19:52 +0100 Subject: [PATCH] test: try setup dotnet cache --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ece538da49..2204ac5fe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,6 +113,7 @@ jobs: lowercase_target: arm64 env: MAABUILDER_TARGET_PLATFORM: ${{ matrix.msbuild_target }} + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages runs-on: windows-latest steps: @@ -125,17 +126,14 @@ jobs: run: | git submodule update --init --depth 1 3rdparty/EmulatorExtras - - name: Cache .nuke/temp, ~/.nuget/packages - id: cache-nuget - uses: actions/cache@v4 + - name: Setup .NET + id: dotnet + uses: actions/setup-dotnet@v4 with: - path: | - .nuke/temp - ~/.nuget/packages - key: ${{ runner.os }}-${{ matrix.msbuild_target }}-${{ hashFiles('**/global.json', '**/*.csproj') }} + cache: true - name: Restore dependencies - if: steps.cache-nuget.outputs.cache-hit != 'true' + if: steps.dotnet.outputs.cache-hit != 'true' run: dotnet restore - name: Cache MaaDeps