Skip to content

Commit

Permalink
Use Cache v4 for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparronator9999 committed Jul 24, 2024
1 parent 6054a04 commit 754e92b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
config: [Debug, Release]

runs-on: windows-latest

Expand All @@ -28,7 +28,7 @@ jobs:
uses: nuget/setup-nuget@v2

- name: Restore cached NuGet packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -39,14 +39,14 @@ jobs:
run: msbuild.exe /t:restore /p:RestoreLockedMode=true

- name: Build solution
run: msbuild.exe MSIFanControl.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="${{ matrix.configuration }}"
run: msbuild.exe MSIFanControl.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="${{ matrix.config }}"

- name: Copy fan configs to build path
run: mkdir MSIFanControl.GUI\bin\${{ matrix.configuration }}\net48\Configs && copy Configs\* MSIFanControl.GUI\bin\${{ matrix.configuration }}\net48\Configs
run: mkdir MSIFanControl.GUI\bin\${{ matrix.config }}\net48\Configs && copy Configs\* MSIFanControl.GUI\bin\${{ matrix.config }}\net48\Configs

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: "MSIFanControl-${{ matrix.configuration }}"
path: "./MSIFanControl.GUI/bin/${{ matrix.configuration }}/net48/"
name: "MSIFanControl-${{ matrix.config }}"
path: "./MSIFanControl.GUI/bin/${{ matrix.config }}/net48/"
compression-level: 9

0 comments on commit 754e92b

Please sign in to comment.