2016-05-17 18:28:00 +03:00
|
|
|
os: Visual Studio 2015
|
|
|
|
|
2018-01-12 17:06:19 +03:00
|
|
|
cache:
|
|
|
|
- 'C:\Users\appveyor\.cargo'
|
|
|
|
- target
|
|
|
|
|
2016-05-17 18:28:00 +03:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- channel: nightly
|
|
|
|
|
|
|
|
install:
|
2017-04-21 07:09:15 +03:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
|
|
- rustup-init.exe -y --default-host %target% --default-toolchain %channel%
|
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
2016-05-17 18:28:00 +03:00
|
|
|
|
|
|
|
build_script:
|
2018-02-01 16:13:57 +03:00
|
|
|
- cmd: cargo build %RELEASE% --verbose --features="all-windows %EXTRA_FEATURES%"
|
2016-05-17 18:28:00 +03:00
|
|
|
|
|
|
|
test_script:
|
2018-02-01 16:13:57 +03:00
|
|
|
- cmd: cargo test --all %RELEASE% --verbose --features="all-windows %EXTRA_FEATURES%"
|
2018-02-01 14:39:29 +03:00
|
|
|
|
|
|
|
for:
|
|
|
|
|
|
|
|
-
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- channel: stable
|
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
- channel: beta
|
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
- channel: nightly
|
|
|
|
target: x86_64-pc-windows-msvc
|
2018-07-03 17:02:43 +03:00
|
|
|
- channel: 1.27.0 # Oldest supported version. Keep in sync with README.md.
|
2018-02-01 14:39:29 +03:00
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
# Build a release build on master to make sure it builds.
|
|
|
|
- channel: stable
|
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
RELEASE: --release
|
|
|
|
|
|
|
|
-
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- /\d+\.\d+\.\d+/
|
|
|
|
environment:
|
|
|
|
# Only build a release build for releases.
|
|
|
|
channel: stable
|
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
RELEASE: --release
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- ps: |
|
|
|
|
$NAME = "sccache-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
|
|
|
|
New-Item -Path $NAME -ItemType directory
|
|
|
|
Copy-Item target/release/sccache.exe "${NAME}/"
|
|
|
|
Copy-Item LICENSE "${NAME}/"
|
|
|
|
Copy-Item README.md "${NAME}/"
|
|
|
|
7z a -ttar "${NAME}.tar" "${NAME}"
|
|
|
|
7z a "${NAME}.tar.gz" "${NAME}.tar"
|
|
|
|
Push-AppveyorArtifact "${NAME}.tar.gz"
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
artifact: /.*\.tar.gz/
|
|
|
|
auth_token:
|
|
|
|
secure: NKcPr8KYJE2osDxfO1xBDQHQRgJrhgItv2op6KKZSfLB01rq08M3243XdN3J5aaJ
|
|
|
|
description: ''
|
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
provider: GitHub
|
|
|
|
force_update: true
|