mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
CI: Cache improvements
This commit is contained in:
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'
|
||||
|
||||
Reference in New Issue
Block a user