You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9KB

  1. # Based on the "trust" template v0.1.1
  2. # https://github.com/japaric/trust/tree/v0.1.1
  3. os: Visual Studio 2017
  4. environment:
  5. global:
  6. RUST_VERSION: stable
  7. CRATE_NAME: gutenberg
  8. matrix:
  9. + - target: x86_64-pc-windows-msvc
  10. + RUST_VERSION: 1.25.0
  11. install:
  12. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
  13. - curl -sSf -o rustup-init.exe https://win.rustup.rs/
  14. - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
  15. - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  16. - rustc -Vv
  17. - cargo -V
  18. # TODO This is the "test phase", tweak it as you see fit
  19. test_script:
  20. # we don't run the "test phase" when doing deploys
  21. - if [%APPVEYOR_REPO_TAG%]==[false] (
  22. cargo test --all --target %TARGET%
  23. )
  24. before_deploy:
  25. # TODO Update this to build the artifacts that matter to you
  26. - cargo rustc --target %TARGET% --release --bin gutenberg -- -C lto
  27. - ps: ci\before_deploy.ps1
  28. deploy:
  29. artifact: /.*\.zip/
  30. # TODO update `auth_token.secure`
  31. # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
  32. # - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
  33. # - Paste the output down here
  34. auth_token:
  35. secure: YCRPSTItx+m/3jnDfai52dEZNLYUTSEExF2lZoffULDzlv/t2jOR1fzSSIEi/xyB
  36. description: ''
  37. on:
  38. # TODO Here you can pick which targets will generate binary releases
  39. # In this example, there are some targets that are tested using the stable
  40. # and nightly channels. This condition makes sure there is only one release
  41. # for such targets and that's generated using the stable channel
  42. RUST_VERSION: stable
  43. appveyor_repo_tag: true
  44. provider: GitHub
  45. cache:
  46. - C:\Users\appveyor\.cargo\registry
  47. - target
  48. branches:
  49. only:
  50. # Release tags
  51. - /^v\d+\.\d+\.\d+.*$/
  52. - master
  53. # disable automatic builds
  54. build: false