Skip to content

Commit

Permalink
ci: caching of 3rd party licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGalla committed Mar 30, 2024
1 parent 2b1b463 commit fe01d5a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/cache@v4
name: Restore Licenses cache
with:
path: AutoStartConfirmLib/Licenses
key: ${{ runner.os }}-nuget-${{ hashFiles('AutoStartConfirmLib/AutoStartConfirmLib.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore NuGet packages
run: nuget restore AutoStartConfirm.sln
Expand All @@ -60,7 +68,7 @@ jobs:
run: dotnet tool install --global dotnet-project-licenses

- name: Download 3rd party licenses
run: dotnet-project-licenses -i AutoStartConfirmLib -o AutoStartConfirmLib\Licenses -t --timeout 60 -e -c -f AutoStartConfirmLib\Licenses -u --outfile Licenses.txt
run: if (-not (Test-Path AutoStartConfirmLib\Licenses)) {dotnet-project-licenses -i AutoStartConfirmLib -o AutoStartConfirmLib\Licenses -t --timeout 60 -e -c -f AutoStartConfirmLib\Licenses -u --outfile Licenses.txt}

- name: Build product
run: msbuild build/Daily.targets /property:Configuration=Release
Expand Down

0 comments on commit fe01d5a

Please sign in to comment.