appveyor.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. clone_depth: 5
  2. version: "{branch}.{build}"
  3. image:
  4. - Ubuntu
  5. - Visual Studio 2019
  6. environment:
  7. matrix:
  8. - GETH_ARCH: amd64
  9. GETH_MINGW: 'C:\msys64\mingw64'
  10. - GETH_ARCH: 386
  11. GETH_MINGW: 'C:\msys64\mingw32'
  12. install:
  13. - git submodule update --init --depth 1 --recursive
  14. - go version
  15. for:
  16. # Linux has its own script without -arch and -cc.
  17. # The linux builder also runs lint.
  18. - matrix:
  19. only:
  20. - image: Ubuntu
  21. build_script:
  22. - go run build/ci.go lint
  23. - go run build/ci.go install -dlgo
  24. test_script:
  25. - go run build/ci.go test -dlgo -coverage
  26. # linux/386 is disabled.
  27. - matrix:
  28. exclude:
  29. - image: Ubuntu
  30. GETH_ARCH: 386
  31. # Windows builds for amd64 + 386.
  32. - matrix:
  33. only:
  34. - image: Visual Studio 2019
  35. environment:
  36. # We use gcc from MSYS2 because it is the most recent compiler version available on
  37. # AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is
  38. # contained in PATH.
  39. GETH_CC: '%GETH_MINGW%\bin\gcc.exe'
  40. PATH: '%GETH_MINGW%\bin;C:\Program Files (x86)\NSIS\;%PATH%'
  41. build_script:
  42. - 'echo %GETH_ARCH%'
  43. - 'echo %GETH_CC%'
  44. - '%GETH_CC% --version'
  45. - go run build/ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC%
  46. after_build:
  47. # Upload builds. Note that ci.go makes this a no-op PR builds.
  48. - go run build/ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
  49. - go run build/ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
  50. test_script:
  51. - go run build/ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage