Skip to content

Commit

Permalink
FIxed cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Romanowski committed Sep 8, 2023
1 parent 35926c7 commit c227312
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ env:
CONFIGURATION: Release
RETENTION_DAYS: 1
NUGET_OUTPUT_DIRECTORY: ${{ github.workspace }}/nuget
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

jobs:
build:
Expand All @@ -35,14 +34,13 @@ jobs:
id: cache
uses: actions/cache@v3
with:
path: ${{ env.NUGET_PACKAGES }}
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: dotnet restore ${{ env.SLN }}
run: dotnet restore ${{ env.SLN }} -locked-mode

- name: ${{ env.SLN }} ${{ env.CONFIGURATION }} Build
run: dotnet build ${{ env.SLN }} --no-restore --configuration ${{ env.CONFIGURATION }} -p:GITHUB_ACTIONS=true
Expand Down

0 comments on commit c227312

Please sign in to comment.