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.

58 lines
1.3KB

  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: zola
  8. matrix:
  9. - target: x86_64-pc-windows-msvc
  10. RUST_VERSION: 1.31.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 zola -- -C lto
  27. - ps: ci\before_deploy.ps1
  28. deploy:
  29. artifact: /.*\.zip/
  30. auth_token:
  31. secure: i64eFOHoySQryE3M9pr2JGRukAK3LGltOsUxeFHwilS+3O6/6828A4NUmI0FW4zN
  32. description: ''
  33. on:
  34. RUST_VERSION: stable
  35. appveyor_repo_tag: true
  36. provider: GitHub
  37. cache:
  38. - C:\Users\appveyor\.cargo\registry
  39. - target
  40. branches:
  41. only:
  42. # Release tags
  43. - /^v\d+\.\d+\.\d+.*$/
  44. - master
  45. - next
  46. # disable automatic builds
  47. build: false