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.4KB

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