From 226d0dfd1d1b09d0f7b3e33df89692f3eaaa9f6f Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Thu, 14 Nov 2024 07:47:55 +0100 Subject: [PATCH] workflow: only restore packages for projects that are being built --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0dfe0bf..389c3641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: ${{ runner.os }}-nuget- - name: Restore NuGet packages - run: dotnet restore -r net9.0-windows + 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 @@ -65,10 +65,10 @@ jobs: dotnet-version: ${{ matrix.dotnet-version }} - name: Install dependencies - run: dotnet restore -r ${{ matrix.rid }} + run: dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.CLI - name: Build & Publish - run: dotnet publish ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} + run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj - name: Upload artifacts uses: actions/upload-artifact@v4