appveyor.yml 1002 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: "{build}"
  2. platform: x64
  3. image: Visual Studio 2017
  4. clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v3
  5. environment:
  6. GOPATH: c:\gopath
  7. install:
  8. - choco install make
  9. - c:\msys64\usr\bin\pacman --noconfirm --needed -S mingw-w64-x86_64-toolchain
  10. - curl -SLko protoc.zip https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-win32.zip
  11. - 7z e protoc.zip
  12. - move protoc.exe C:\msys64\mingw64\bin
  13. build_script:
  14. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  15. - set PATH=C:\msys64\mingw64\bin;%PATH%
  16. - cd %GOPATH%\src\gopkg.in\src-d\hercules.v3
  17. - make
  18. - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v3\hercules.win64.zip %GOPATH%\bin\hercules.exe
  19. artifacts:
  20. - name: hercules.win64.zip
  21. path: hercules.win64.zip
  22. deploy:
  23. release: $(APPVEYOR_REPO_TAG_NAME)
  24. provider: GitHub
  25. auth_token:
  26. secure: 78zsH4q19DqcpdkwnYHQoe0BakBfv+LGu1W7mXuaBC9mS87+EuAj3+yTzJv4NEfI
  27. artifact: hercules.win64.zip
  28. on:
  29. branch: master
  30. appveyor_repo_tag: true