fork/livesplit-core

git clone https://git.julia.blue/fork/livesplit-core

Christopher SerrDeploy other stable versions on AppVeyorcd644eb

v0.11.0
2.3 KiB93 linesraw
1# Based on the "trust" template v0.1.1
2# https://github.com/japaric/trust/tree/v0.1.1
3
4environment:
5  global:
6    RUST_VERSION: stable
7    CRATE_NAME: livesplit-core
8
9  matrix:
10    # Aarch64
11    - TARGET: aarch64-pc-windows-msvc
12      SKIP_TESTS: true
13      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
14      RUST_VERSION: stable-x86_64-pc-windows-msvc
15
16    # MSVC
17    - TARGET: i586-pc-windows-msvc
18      RUST_VERSION: stable-i686-pc-windows-msvc
19    - TARGET: i686-pc-windows-msvc
20    - TARGET: x86_64-pc-windows-msvc
21
22    # MinGW
23    - TARGET: i686-pc-windows-gnu
24    - TARGET: x86_64-pc-windows-gnu
25
26    # Testing other channels
27    - TARGET: x86_64-pc-windows-gnu
28      RUST_VERSION: beta
29    - TARGET: x86_64-pc-windows-msvc
30      RUST_VERSION: beta
31    - TARGET: x86_64-pc-windows-gnu
32      RUST_VERSION: nightly
33    - TARGET: x86_64-pc-windows-msvc
34      RUST_VERSION: nightly
35
36matrix:
37  allow_failures:
38    - RUST_VERSION: nightly
39    - RUST_VERSION: beta
40
41install:
42  - ps: >-
43      choco install curl
44  - curl -sSf -o rustup-init.exe https://win.rustup.rs/
45  - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
46  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
47  - rustup target install %TARGET%
48  - rustc -Vv
49  - cargo -V
50
51test_script:
52  # we don't run the "test phase" when doing deploys
53  - if [%APPVEYOR_REPO_TAG%]==[false] (
54      cargo build -p staticlib --target %TARGET% &&
55      cargo build -p cdylib --target %TARGET% &&
56      if [%SKIP_TESTS%] neq [true] (
57        cargo test -p livesplit-core --all-features --target %TARGET% &&
58        cargo test -p livesplit-core --no-default-features --target %TARGET%
59      )
60    )
61
62before_deploy:
63  - cargo rustc -p staticlib --target %TARGET% --release
64  - cargo rustc -p cdylib --target %TARGET% --release
65  - ps: ci\before_deploy.ps1
66
67deploy:
68  artifact: /.*\.zip/
69  auth_token:
70    secure: zZGfrpCR/0TmHcXPwar4hOx6pZeq3C9Wwf/g62pvf135tAwJIVpuZHJjB0sAAd2M
71  description: ''
72  on:
73    RUST_VERSION: /stable.*/
74    appveyor_repo_tag: true
75  provider: GitHub
76
77# Don't cache on appveyor, as it seems to blow the disk storage every now and then.
78# cache:
79#   - C:\Users\appveyor\.cargo\registry
80#   - target
81
82# branches:
83#   only:
84#     # Release tags
85#     - /^v\d+\.\d+\.\d+.*$/
86#     - master
87
88notifications:
89  - provider: Email
90    on_build_success: false
91
92# disable automatic builds
93build: false