don't run restore steps if nuget cache restored

This commit is contained in:
Nick Seguin 2023-12-10 21:43:42 -06:00
parent 164532dda5
commit edc482e472

View file

@ -54,12 +54,16 @@ jobs:
${{ runner.os }}-nuget-
- name: dotnet tool restore
run: dotnet tool restore
if: steps.nuget-cache.outputs.cache-hit != 'true'
- name: dotnet restore
run: dotnet restore -p:Configuration=Release
run: dotnet restore -p:Configuration=Release --configfile nuget.config --locked-mode
if: steps.nuget-cache.outputs.cache-hit != 'true'
- name: dotnet workload restore
run: dotnet workload restore
if: steps.nuget-cache.outputs.cache-hit != 'true'
- name: dotnet workload install wasm-tools
run: dotnet workload install wasm-tools
if: steps.nuget-cache.outputs.cache-hit != 'true'
- name: save nuget cache
uses: actions/cache/save@v3
if: steps.nuget-cache.outputs.cache-hit != 'true'