Skip to content

Commit

Permalink
Update NuGet setup and optimize artifact paths
Browse files Browse the repository at this point in the history
Upgraded NuGet setup action to v2 and added caching to speed up package restoration. Changed upload paths of compiled plugins from .zip to .dll to reflect updated build outputs and streamline artifact management.
  • Loading branch information
ivandrofly committed Nov 22, 2024
1 parent 9c5173c commit 55273d1
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ jobs:

# Setup NuGet
- name: Setup NuGet
uses: NuGet/setup-nuget@v1

uses: nuget/setup-nuget@v2

- 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'
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
Expand All @@ -46,34 +53,34 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Plugins
path: C:\plugins\*.zip
path: C:\plugins\*.dll

- name: Upload Artifact (HI2UC)
uses: actions/upload-artifact@v4
with:
name: HI2UC
path: C:\plugins\HI2UC.zip
path: C:\plugins\HI2UC.dll

- name: Upload Artifact (HIColorer)
uses: actions/upload-artifact@v4
with:
name: HIColorer
path: C:\plugins\HIColorer.zip
path: C:\plugins\HIColorer.dll

- name: Upload Artifact (TightHyphen)
uses: actions/upload-artifact@v4
with:
name: TightHyphen
path: C:\plugins\TightHyphen.zip
path: C:\plugins\TightHyphen.dll

- name: Upload Artifact (LinesUnbreaker)
uses: actions/upload-artifact@v4
with:
name: LinesUnbreaker
path: C:\plugins\LinesUnbreaker.zip
path: C:\plugins\LinesUnbreaker.dll

- name: Upload Artifact (NoRecursiveDash)
uses: actions/upload-artifact@v4
with:
name: NoRecursiveDash
path: C:\plugins\NoRecursiveDash.zip
path: C:\plugins\NoRecursiveDash.dll

0 comments on commit 55273d1

Please sign in to comment.