From ae4f3e8180c60314706295b91844e43e89e03ba6 Mon Sep 17 00:00:00 2001 From: Joel Van Eenwyk Date: Thu, 14 Mar 2024 10:42:23 -0700 Subject: [PATCH] Enable cache and locked mode in workflow --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5bdcac..0158761 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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] @@ -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'