From ca84c6b27332ee2b7be5a927a922b8a8145cea74 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Fri, 22 Nov 2024 11:22:41 +0000 Subject: [PATCH] Disable NuGet caching and unused steps Commented out the NuGet caching step and some other unused steps in the GitHub Actions workflow. This change simplifies the workflow and ensures the restore and build steps operate correctly without relying on the cache. --- .github/workflows/main.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a10f098..26db5d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,27 +24,22 @@ jobs: # Setup NuGet - name: Setup NuGet uses: nuget/setup-nuget@v2 - - - uses: actions/cache@v4 - id: cache - with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + + #- uses: actions/cache@v4 + # id: cache + # with: + # path: ~/.nuget/packages + # key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} # Restore NuGet packages - name: Restore NuGet packages - if: steps.cache.outputs.cache-hit != 'true' + # if: steps.cache.outputs.cache-hit != 'true' run: nuget restore "source\Plugins.Filter.slnf" - + # Build the solution - name: Build solution run: msbuild "source\Plugins.Filter.slnf" /p:Configuration=Release /p:SkipSharedProject=true - - # Run tests (optional) - #- name: Run tests - #run: | - #vstest.console.exe path\to\your\test\project.dll - + - name: Create archives shell: pwsh run: source\zip-plugin-files.ps1 @@ -78,7 +73,7 @@ jobs: with: name: LinesUnbreaker path: C:\plugins\LinesUnbreaker.dll - + - name: Upload Artifact (NoRecursiveDash) uses: actions/upload-artifact@v4 with: