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.

64 lines
1.7KB

  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.27.0
  11. - target: x86_64-pc-windows-msvc
  12. RUST_VERSION: stable
  13. install:
  14. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
  15. - curl -sSf -o rustup-init.exe https://win.rustup.rs/
  16. - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
  17. - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  18. - rustc -Vv
  19. - cargo -V
  20. test_script:
  21. # we don't run the "test phase" when doing deploys
  22. - if [%APPVEYOR_REPO_TAG%]==[false] (
  23. cargo test --all --target %TARGET%
  24. )
  25. before_deploy:
  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. # In this example, there are some targets that are tested using the stable
  39. # and nightly channels. This condition makes sure there is only one release
  40. # for such targets and that's generated using the stable channel
  41. RUST_VERSION: 1.25.0
  42. appveyor_repo_tag: true
  43. provider: GitHub
  44. cache:
  45. - C:\Users\appveyor\.cargo\registry
  46. - target
  47. branches:
  48. only:
  49. # Release tags
  50. - /^v\d+\.\d+\.\d+.*$/
  51. - master
  52. # disable automatic builds
  53. build: false