mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
CI: Cache improvements
This commit is contained in:
parent
807284515b
commit
d3e7112a3d
2 changed files with 17 additions and 2 deletions
15
.travis.yml
15
.travis.yml
|
@ -25,7 +25,20 @@ env:
|
|||
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||
- RUNTIMES="generic win-x64 linux-x64 linux-arm osx-x64" # https://github.com/travis-ci/travis-ci/issues/1444
|
||||
|
||||
before_script: dotnet restore
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.local/share/NuGet
|
||||
- $HOME/.nuget
|
||||
|
||||
before_script:
|
||||
- |
|
||||
set -e
|
||||
|
||||
if git diff --name-only HEAD^ HEAD | grep -Fq '.csproj'; then
|
||||
dotnet nuget locals -c all
|
||||
fi
|
||||
|
||||
dotnet restore
|
||||
|
||||
script:
|
||||
- |
|
||||
|
|
|
@ -31,7 +31,9 @@ install:
|
|||
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1' -OutFile '.\scripts\obtain\dotnet-install.ps1'
|
||||
|
||||
.\scripts\obtain\dotnet-install.ps1 -Channel "$env:DOTNET_CHANNEL" -InstallDir "$env:DOTNET_INSTALL_DIR"
|
||||
cache: '%UserProfile%\.nuget\packages -> **\*.csproj'
|
||||
cache:
|
||||
- '%LocalAppData%\NuGet -> **\*.csproj'
|
||||
- '%UserProfile%\.nuget -> **\*.csproj'
|
||||
before_build:
|
||||
- ps: >-
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
|
Loading…
Reference in a new issue