Skip to content

Commit

Permalink
Enable cache and locked mode in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvaneenwyk committed Mar 14, 2024
1 parent d51e651 commit ae4f3e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dotnet: [8.0.x, 6.0.x]
dotnet: [8.x, 6.x]
os: [windows-latest]
config: [Debug, Release]

Expand All @@ -27,11 +27,12 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
# env:
# NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
cache: true
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Restore dependencies
run: dotnet restore
run: dotnet restore --locked-mode

# The '--graph' parameter is to address an occasional build error about files being
# used by another process the during 'GenerateRuntimeConfigurationFiles'
Expand Down

0 comments on commit ae4f3e8

Please sign in to comment.