|
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 |
5 | 2 | clone_depth: 5
|
6 | 3 | version: "{branch}.{build}"
|
7 | 4 | environment:
|
8 |
| - global: |
9 |
| - GO111MODULE: on |
10 |
| - GOPATH: C:\gopath |
11 |
| - CC: gcc.exe |
12 | 5 | 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. |
13 | 9 | - 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% |
18 | 12 | - 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% |
23 | 15 |
|
24 | 16 | 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 |
29 | 18 | - go version
|
30 |
| - - gcc --version |
| 19 | + - "%GETH_CC% --version" |
31 | 20 |
|
32 | 21 | build_script:
|
33 |
| - - go run build\ci.go install -dlgo |
| 22 | + - go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC% |
34 | 23 |
|
35 | 24 | 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 |
38 | 27 |
|
39 | 28 | 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