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.

75 lines
2.4KB

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