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