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