appveyor.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. - appveyor-retry choco install --allow-empty-checksums 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. - set DISABLE_TENSORFLOW=1
  18. - make
  19. - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v3\hercules.win64.zip %GOPATH%\bin\hercules.exe
  20. artifacts:
  21. - name: hercules.win64.zip
  22. path: hercules.win64.zip
  23. deploy:
  24. release: $(APPVEYOR_REPO_TAG_NAME)
  25. provider: GitHub
  26. auth_token:
  27. secure: 78zsH4q19DqcpdkwnYHQoe0BakBfv+LGu1W7mXuaBC9mS87+EuAj3+yTzJv4NEfI
  28. artifact: hercules.win64.zip
  29. on:
  30. branch: master
  31. appveyor_repo_tag: true