Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Sep 24, 2024
1 parent 8f38842 commit 80666ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
build:
name: Build and analyze
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/TrustedPackages
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
Expand All @@ -21,15 +19,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-dotnet@v4
with:
cache: true
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/TrustedPackages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v4
Expand Down

0 comments on commit 80666ae

Please sign in to comment.