From 2bd24b9c127d95a0768ff80b6c3503faec5508e1 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Thu, 14 Nov 2024 07:53:14 +0100 Subject: [PATCH] workflow: tweak caching and fix gui compilation --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 389c3641..976ab9fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,18 +16,18 @@ jobs: with: dotnet-version: '9.0.x' - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + key: ${{ runner.os }}-nuget-gui-${{ hashFiles('**/packages.lock.json') }} restore-keys: | - ${{ runner.os }}-nuget- + ${{ runner.os }}-nuget-gui- - name: Restore NuGet packages run: dotnet restore -r win-x64 ./Il2CppInspector.GUI - name: Build GUI - run: dotnet publish ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj -c Release -r net9.0-windows --no-self-contained + run: dotnet publish ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj -c Release -r win-x64 --no-self-contained - name: Upload GUI Artifact uses: actions/upload-artifact@v4 @@ -55,9 +55,9 @@ jobs: - uses: actions/cache@v3 with: path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + key: ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }} restore-keys: | - ${{ runner.os }}-nuget- + ${{ runner.os }}-nuget-cli-${{ matrix.rid }}- - name: Setup .NET SDK ${{ matrix.dotnet-version }} uses: actions/setup-dotnet@v3