Skip to content

Commit

Permalink
Disable NuGet caching and unused steps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivandrofly committed Nov 22, 2024
1 parent 55273d1 commit ca84c6b
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -78,7 +73,7 @@ jobs:
with:
name: LinesUnbreaker
path: C:\plugins\LinesUnbreaker.dll

- name: Upload Artifact (NoRecursiveDash)
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ca84c6b

Please sign in to comment.