mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
pkg(dotnet-5.0.201): Nuget caching
This commit is contained in:
parent
7ad8f337bc
commit
91018d6d85
4 changed files with 20 additions and 3 deletions
8
packages/dotnet/5.0.201/build.sh
vendored
8
packages/dotnet/5.0.201/build.sh
vendored
|
@ -4,3 +4,11 @@ curl "https://download.visualstudio.microsoft.com/download/pr/73a9cb2a-1acd-4d20
|
|||
tar xzf dotnet.tar.gz --strip-components=1
|
||||
rm dotnet.tar.gz
|
||||
|
||||
# Cache nuget packages
|
||||
export DOTNET_CLI_HOME=$PWD
|
||||
dotnet new console -o cache_application
|
||||
# This calls a restore on the global-packages index ($DOTNET_CLI_HOME/.nuget/packages)
|
||||
# If we want to allow more packages, we could add them to this cache_application
|
||||
|
||||
rm -rf cache_application
|
||||
# Get rid of it, we don't actually need the application - just the restore
|
Loading…
Add table
Add a link
Reference in a new issue