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.

appveyor.yml 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Based on the "trust" template v0.1.1
  2. # https://github.com/japaric/trust/tree/v0.1.1
  3. environment:
  4. global:
  5. # TODO This is the Rust channel that build jobs will use by default but can be
  6. # overridden on a case by case basis down below
  7. RUST_VERSION: stable
  8. # TODO Update this to match the name of your project.
  9. CRATE_NAME: trust
  10. # TODO These are all the build jobs. Adjust as necessary. Comment out what you
  11. # don't need
  12. matrix:
  13. # MinGW
  14. - TARGET: i686-pc-windows-gnu
  15. - TARGET: x86_64-pc-windows-gnu
  16. # MSVC
  17. - TARGET: i686-pc-windows-msvc
  18. - TARGET: x86_64-pc-windows-msvc
  19. # Testing other channels
  20. - TARGET: x86_64-pc-windows-gnu
  21. RUST_VERSION: nightly
  22. - TARGET: x86_64-pc-windows-msvc
  23. RUST_VERSION: nightly
  24. install:
  25. - ps: >-
  26. If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
  27. $Env:PATH += ';C:\msys64\mingw64\bin'
  28. } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
  29. $Env:PATH += ';C:\msys64\mingw32\bin'
  30. }
  31. - curl -sSf -o rustup-init.exe https://win.rustup.rs/
  32. - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
  33. - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  34. - rustc -Vv
  35. - cargo -V
  36. # TODO This is the "test phase", tweak it as you see fit
  37. test_script:
  38. # we don't run the "test phase" when doing deploys
  39. - if [%APPVEYOR_REPO_TAG%]==[false] (
  40. cargo build --target %TARGET% &&
  41. cargo build --target %TARGET% --release
  42. )
  43. before_deploy:
  44. # TODO Update this to build the artifacts that matter to you
  45. - cargo rustc --target %TARGET% --release --bin tantivy -- -C lto
  46. - ps: ci\before_deploy.ps1
  47. deploy:
  48. artifact: /.*\.zip/
  49. # TODO update `auth_token.secure`
  50. # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
  51. # - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
  52. # - Paste the output down here
  53. auth_token:
  54. secure: t3puM/2hOig26EHhAodcZBc61NywF7/PFEpimR6SwGaCiqS07KR5i7iAhSABmBp7
  55. description: ''
  56. on:
  57. # TODO Here you can pick which targets will generate binary releases
  58. # In this example, there are some targets that are tested using the stable
  59. # and nightly channels. This condition makes sure there is only one release
  60. # for such targets and that's generated using the stable channel
  61. RUST_VERSION: stable
  62. appveyor_repo_tag: true
  63. provider: GitHub
  64. cache:
  65. - C:\Users\appveyor\.cargo\registry
  66. - target
  67. branches:
  68. only:
  69. # Release tags
  70. - /^v\d+\.\d+\.\d+.*$/
  71. - master
  72. notifications:
  73. - provider: Email
  74. on_build_success: false
  75. # Building is done in the test phase, so we disable Appveyor's build phase.
  76. build: false