From e4955a5823d611588dfda8622bd5ffb72c83b6df Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Fri, 28 Apr 2023 21:30:16 +0200 Subject: [PATCH] Update appveyor.yml --- appveyor.yml | 50 +++++++++++++++++++------------------------------- 1 file changed, 19 insertions(+), 31 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 422139d..29766c2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,37 +1,25 @@ -version: "{build}" +clone_depth: 5 +version: "{branch}.{build}" -hosts: - quic.clemente.io: 127.0.0.1 - -os: Windows Server 2019 - -clone_folder: c:\gopath\src\github.com\mholt\caddy +image: + - Visual Studio 2019 environment: - GOPATH: c:\gopath + matrix: + - GETH_ARCH: amd64 + GETH_CC: C:\msys64\mingw64\bin\gcc.exe + PATH: C:\msys64\mingw64\bin;C:\Program Files (x86)\NSIS\;%PATH% install: - - rmdir c:\go /s /q - - appveyor DownloadFile https://storage.googleapis.com/golang/go1.18.windows-amd64.zip - - 7z x go1.11.windows-amd64.zip -y -oC:\ > NUL - - set PATH=%GOPATH%\bin;%PATH% + - git submodule update --init --depth 1 --recursive - go version - - go env - - go get -t ./... - - go get github.com/golang/lint/golint - - go get github.com/FiloSottile/vendorcheck - # Install gometalinter - - go get github.com/alecthomas/gometalinter - -build: off - -test_script: - - gometalinter --install - - gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests --vendor ./... - - vendorcheck ./... - - go test -race - -after_test: - - golint ./... - -deploy: off + + build_script: + - ps: $env:VERSION = "$(git describe --always)" + - go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC% + - 7z a open-etc-pool-friends-win64-%VERSION%.zip .\build\bin\geth.exe + - ps: Get-FileHash open-etc-pool-friends-win64-$env:VERSION.zip -Algorithm SHA256 + - ps: Get-FileHash open-etc-pool-friends-win64-$env:VERSION.zip -Algorithm SHA256 | Out-File open-etc-pool-friends-win64-$env:VERSION.zip.sha256 + - 7z a open-etc-pool-friends-alltools-win64-%VERSION%.zip .\build\bin\* + - ps: Get-FileHash open-etc-pool-friends-alltools-win64-$env:VERSION.zip -Algorithm SHA256 + - ps: Get-FileHash open-etc-pool-friends-alltools-win64-$env:VERSION.zip | Out-File open-etc-pool-friends-alltools-win64-$env:VERSION.zip.sha256