Cache the Go installer in AppVeyor CI No need to download it every time. Closes #26132.
| ... | ... | @@ -50,6 +50,9 @@ environment: |
| 50 | 50 | CONFIGURATION: Release
|
| 51 | 51 | APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
| 52 | 52 | |
| 53 | +cache:
|
|
| 54 | + - '%USERPROFILE%\go%GOVERSION%.windows-amd64.msi'
|
|
| 55 | + |
|
| 53 | 56 | clone_depth: 1
|
| 54 | 57 | |
| 55 | 58 | install: git submodule update --init
|
| ... | ... | @@ -81,8 +84,10 @@ before_test: |
| 81 | 84 | echo Getting and launching httpbin.
|
| 82 | 85 | rmdir %GOROOT% /s /q
|
| 83 | 86 | mkdir %GOROOT%
|
| 84 | - appveyor DownloadFile https://go.dev/dl/go%GOVERSION%.windows-amd64.msi
|
|
| 85 | - msiexec /i go%GOVERSION%.windows-amd64.msi INSTALLDIR="%GOROOT%" /q
|
|
| 87 | + cd %USERPROFILE%
|
|
| 88 | + set go_exe=go%GOVERSION%.windows-amd64.msi
|
|
| 89 | + if not exist "%go_exe%" appveyor DownloadFile https://go.dev/dl/%go_exe%
|
|
| 90 | + msiexec /i %go_exe% INSTALLDIR="%GOROOT%" /q
|
|
| 86 | 91 | go version
|
| 87 | 92 | go install github.com/mccutchen/go-httpbin/v2/cmd/go-httpbin@v2
|
| 88 | 93 | set PATH=%PATH%;%GOPATH%\bin
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help