appveyor.yml 1.76 KB
Newer Older
1
image: Visual Studio 2017
2 3

environment:
4 5 6
  host: x86_64-pc-windows-msvc
  matrix:
    - platform: x86_64
7
      target: x86_64-pc-windows-msvc
8 9 10 11 12 13 14
      channel: stable
    - platform: arm64
      target: aarch64-pc-windows-msvc
      channel: nightly
matrix:
  allow_failures:
    - platform: arm64
15 16

install:
17
    - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
18
    - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
19
    - appveyor DownloadFile https://people.xiph.org/~tdaede/nasm-2.14.02-win64.zip -FileName nasm.zip
20 21
    - appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz
    - tar xzf sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz
22
    - 7z e -y nasm.zip
23
    - rustup-init -yv --default-toolchain %channel% --default-host %host%
24 25 26 27
    - set PATH=%PATH%;%USERPROFILE%\.cargo\bin;%APPVEYOR_BUILD_FOLDER%;nasm-2.14.02;sccache-0.2.8-x86_64-pc-windows-msvc
    - set RUSTC_WRAPPER=sccache
    - set SCCACHE_CACHE_SIZE=500M
    - set SCCACHE_DIR=%LOCALAPPDATA%\Mozilla\sccache
28
    - ps: $Env:PKG_CONFIG_ALLOW_CROSS=1
29 30
    - rustc -vV
    - cargo -vV
31
    - rustup target add %target%
32

33 34 35 36 37 38
on_success:
    - sccache -s

cache:
    - '%LOCALAPPDATA%\Mozilla\sccache'

39
build_script:
40
    - cargo build --release --target=%target%
41

Raphael Zumer's avatar
Raphael Zumer committed
42
test_script:
43
    - cargo test --target=%target% --verbose
44 45

artifacts:
46 47 48 49 50 51 52
    - path: target\$(target)\release\rav1e.exe
      name: rav1e-$(platform)
      
deploy:
  - provider: GitHub
    artifact: target\$(target)\release\rav1e.exe
    auth_token:
53
      secure: 'LPBjNyFOg+vBkVR4w+89YVNhByaXBGNwtN6UwkFkWTfPow5oeCbFMtJavU9ZLs+c'
54 55 56
    prerelease: true
    on:
      appveyor_repo_tag: true