Skip to content

Commit 3a2b29c

Browse files
authored
appveyor.yml: upgrade to VisualStudio 2019 image (ethereum#22811)
1 parent 973ad66 commit 3a2b29c

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

appveyor.yml

+14-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,29 @@
1-
os: Visual Studio 2015
2-
3-
# Clone directly into GOPATH.
4-
clone_folder: C:\gopath\src\github.com\ethereum\go-ethereum
1+
os: Visual Studio 2019
52
clone_depth: 5
63
version: "{branch}.{build}"
74
environment:
8-
global:
9-
GO111MODULE: on
10-
GOPATH: C:\gopath
11-
CC: gcc.exe
125
matrix:
6+
# We use gcc from MSYS2 because it is the most recent compiler version available on
7+
# AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is
8+
# contained in PATH.
139
- GETH_ARCH: amd64
14-
MSYS2_ARCH: x86_64
15-
MSYS2_BITS: 64
16-
MSYSTEM: MINGW64
17-
PATH: C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
10+
GETH_CC: C:\msys64\mingw64\bin\gcc.exe
11+
PATH: C:\msys64\mingw64\bin;C:\Program Files (x86)\NSIS\;%PATH%
1812
- GETH_ARCH: 386
19-
MSYS2_ARCH: i686
20-
MSYS2_BITS: 32
21-
MSYSTEM: MINGW32
22-
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
13+
GETH_CC: C:\msys64\mingw32\bin\gcc.exe
14+
PATH: C:\msys64\mingw32\bin;C:\Program Files (x86)\NSIS\;%PATH%
2315

2416
install:
25-
- git submodule update --init
26-
- rmdir C:\go /s /q
27-
- appveyor DownloadFile https://dl.google.com/go/go1.16.windows-%GETH_ARCH%.zip
28-
- 7z x go1.16.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
17+
- git submodule update --init --depth 1
2918
- go version
30-
- gcc --version
19+
- "%GETH_CC% --version"
3120

3221
build_script:
33-
- go run build\ci.go install -dlgo
22+
- go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC%
3423

3524
after_build:
36-
- go run build\ci.go archive -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
37-
- go run build\ci.go nsis -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
25+
- go run build\ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
26+
- go run build\ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
3827

3928
test_script:
40-
- set CGO_ENABLED=1
41-
- go run build\ci.go test -coverage
29+
- go run build\ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage

0 commit comments

Comments
 (0)