From fde304ee7644cb65195862690972132f344223f7 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Wed, 26 Jul 2017 01:47:31 +0200 Subject: [PATCH] AppVeyor: Install UPX and cache downloaded files. --- appveyor.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 454d6fa..af2c87e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,10 @@ branches: clone_folder: c:\gopath\src\github.com\icedream\icecon +cache: + - go1.8.3.windows-amd64.zip + - upx391w.zip + environment: CGO_ENABLED: "1" GOPATH: c:\gopath @@ -26,9 +30,14 @@ skip_commits: message: /\[ci\s*skip\]/ install: + # Install UPX + - if not exist "upx391w.zip" appveyor DownloadFile "http://upx.sourceforge.net/download/upx391w.zip" -FileName "upx391w.zip" + - 7z x -y "upx391w.zip" -oC:\upx >null + - path C:\upx;%PATH% + # Install our specifically wanted version of Go - rmdir c:\go /s /q - - appveyor DownloadFile "https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip" + - if not exist "go%GOVERSION%.windows-amd64.zip" appveyor DownloadFile "https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip" - 7z x "go%GOVERSION%.windows-amd64.zip" -y -oC:\ > NUL - path c:\go\bin;%PATH%