forked from TrueCloudLab/rclone
add build caching
This commit is contained in:
parent
de4a20894a
commit
1259785329
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,6 @@ steps:
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
mv !(gopath) '$(modulePath)'
|
mv !(gopath) '$(modulePath)'
|
||||||
mkdir -p $(GOCACHE)
|
|
||||||
displayName: Remove old Go, set GOBIN/GOROOT, and move project into GOPATH
|
displayName: Remove old Go, set GOBIN/GOROOT, and move project into GOPATH
|
||||||
|
|
||||||
- task: CacheBeta@0
|
- task: CacheBeta@0
|
||||||
|
@ -164,7 +163,8 @@ steps:
|
||||||
env
|
env
|
||||||
printf "\n\nRclone environment:\n\n"
|
printf "\n\nRclone environment:\n\n"
|
||||||
make vars
|
make vars
|
||||||
touch $(GOCACHE)/.empty
|
mkdir -p $(GOCACHE)
|
||||||
|
echo > $(GOCACHE)/.nonempty
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Print Go version and environment
|
displayName: Print Go version and environment
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue