From 046e77905779c1582cd30ec7a8e8df46c1dc7cfd Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Fri, 1 Dec 2023 10:09:34 +0100 Subject: [PATCH] Add cache to workflow and other fixes --- .github/workflows/build.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffb37209..0de214d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,20 +11,30 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + submodules: true + - uses: microsoft/setup-msbuild@v1.1 + + - uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- - name: Restore NuGet packages run: nuget restore - name: Build GUI - run: msbuild /t:Il2CppInspector_GUI:publish /p:Configuration=Release /p:Platform=x64 /p:TargetFramework=net8.0-windows /p:SelfContained=false /verbosity:minimal + run: msbuild /t:Il2CppInspector_GUI:publish /p:Configuration=Release /p:Platform="Any CPU" /p:TargetFramework=net8.0-windows /p:SelfContained=false /verbosity:minimal - name: Build CLI - run: msbuild /t:Il2CppInspector_CLI:publish /p:Configuration=Release /p:Platform=x64 /p:TargetFramework=net8.0-windows /p:SelfContained=false /verbosity:minimal + run: msbuild /t:Il2CppInspector_CLI:publish /p:Configuration=Release /p:Platform="Any CPU" /p:TargetFramework=net8.0-windows /p:SelfContained=false /verbosity:minimal - name: Upload GUI Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Il2CppInspectorRedux.GUI path: Il2CppInspector.GUI/bin/Release/net8.0-windows/publish