2019-01-16 22:27:09 +00:00
|
|
|
version: "{build} ~ {branch}"
|
|
|
|
|
|
|
|
os: Visual Studio 2017
|
|
|
|
|
2019-03-08 09:20:46 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- staging
|
|
|
|
- trying
|
2019-05-18 19:04:23 +00:00
|
|
|
- master
|
2019-02-14 23:30:42 +00:00
|
|
|
|
2019-01-16 22:27:09 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- CHANNEL: stable
|
|
|
|
ARCH: x86_64
|
2019-02-08 21:51:29 +00:00
|
|
|
ABI: msvc
|
|
|
|
TARGET: x86_64-pc-windows-msvc
|
2019-01-16 22:27:09 +00:00
|
|
|
|
2019-02-20 23:42:07 +00:00
|
|
|
cache:
|
|
|
|
- 'C:\Users\appveyor\.cargo'
|
2019-03-01 21:16:32 +00:00
|
|
|
- target
|
2019-05-20 18:56:40 +00:00
|
|
|
- wapm-cli-target
|
2019-02-20 23:42:07 +00:00
|
|
|
|
2019-01-16 22:27:09 +00:00
|
|
|
install:
|
2019-03-08 02:06:47 +00:00
|
|
|
# # Install LLVM
|
|
|
|
# - mkdir C:\projects\deps
|
|
|
|
# - cd C:\projects\deps
|
2019-07-22 21:01:37 +00:00
|
|
|
# - appveyor DownloadFile https://prereleases.llvm.org/win-snapshots/LLVM-8.0.0-r351033-win64.exe -FileName llvm.exe
|
2019-03-08 02:06:47 +00:00
|
|
|
# - 7z x llvm.exe -oC:\projects\deps\llvm
|
|
|
|
# # - set "PATH=%PATH%;C:\projects\deps\llvm\bin"
|
|
|
|
# - set "LLD_LINK=C:\projects\deps\llvm\bin\lld-link.exe"
|
2019-07-22 21:01:37 +00:00
|
|
|
# - set "LLVM_SYS_80_PREFIX=C:\projects\deps\llvm"
|
2019-03-08 02:06:47 +00:00
|
|
|
# - cd "%APPVEYOR_BUILD_FOLDER%"
|
2019-03-06 23:49:35 +00:00
|
|
|
|
|
|
|
# Install Rust
|
2019-03-01 21:16:32 +00:00
|
|
|
# uncomment these lines if the cache is cleared, or if we must re-install rust for some reason
|
|
|
|
# - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
|
|
# - rustup-init.exe -yv --default-host %target%
|
2019-03-08 02:06:47 +00:00
|
|
|
- set PATH=%PATH%;C:\\Libraries\\llvm-5.0.0\\bin;%USERPROFILE%\.cargo\bin
|
2019-03-01 21:16:32 +00:00
|
|
|
- rustup default stable-%target%
|
|
|
|
- rustup update
|
2019-01-16 22:27:09 +00:00
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
2019-03-06 23:49:35 +00:00
|
|
|
|
2019-02-25 22:48:39 +00:00
|
|
|
# Install InnoSetup
|
|
|
|
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-08-22-is.exe
|
|
|
|
- 2017-08-22-is.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
|
|
|
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
|
2019-03-01 21:16:32 +00:00
|
|
|
# uncomment to RDP to appveyor
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
2019-01-16 22:27:09 +00:00
|
|
|
|
|
|
|
build_script:
|
2019-05-18 19:42:59 +00:00
|
|
|
- cargo build --release --verbose
|
2019-07-11 00:30:24 +00:00
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
2019-05-20 18:56:40 +00:00
|
|
|
# Cache wapm cli target in dir above to prevent breaking git submodule on windows
|
2019-05-20 19:07:11 +00:00
|
|
|
- if not exist wapm-cli-target mkdir wapm-cli-target
|
2019-05-20 18:56:40 +00:00
|
|
|
- move wapm-cli-target wapm-cli
|
2019-05-20 19:12:42 +00:00
|
|
|
- cd wapm-cli
|
|
|
|
- rename wapm-cli-target target
|
|
|
|
- cd ..
|
2019-07-23 18:20:59 +00:00
|
|
|
- cargo build --release --manifest-path wapm-cli/Cargo.toml --features "telemetry update-notifications"
|
2019-05-20 19:12:42 +00:00
|
|
|
- cd wapm-cli
|
|
|
|
- cd ..
|
2019-07-06 17:48:52 +00:00
|
|
|
- xcopy wapm-cli\target wapm-cli-target\ /i /y
|
2019-05-28 22:04:51 +00:00
|
|
|
- cargo build --release --manifest-path lib/runtime-c-api/Cargo.toml
|
2019-01-16 22:27:09 +00:00
|
|
|
|
|
|
|
test_script:
|
2019-03-08 03:32:04 +00:00
|
|
|
- cargo test --manifest-path lib/spectests/Cargo.toml --features clif
|
2019-02-14 17:58:33 +00:00
|
|
|
|
2019-03-08 21:00:39 +00:00
|
|
|
before_deploy:
|
2019-02-20 21:58:30 +00:00
|
|
|
- cd ./src/installer
|
2019-02-14 23:30:42 +00:00
|
|
|
- iscc wasmer.iss
|
2019-02-20 21:58:30 +00:00
|
|
|
- copy /y .\WasmerInstaller.exe ..\..\WasmerInstaller-%APPVEYOR_REPO_TAG_NAME%.exe
|
2019-03-01 21:16:32 +00:00
|
|
|
- appveyor PushArtifact ..\..\WasmerInstaller-%APPVEYOR_REPO_TAG_NAME%.exe
|
|
|
|
- cd ..\..\
|
2019-02-14 23:30:42 +00:00
|
|
|
|
2019-03-08 09:20:46 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2019-02-14 23:30:42 +00:00
|
|
|
deploy:
|
|
|
|
description: 'WasmerInstaller'
|
|
|
|
artifact: /.*\.exe/
|
|
|
|
auth_token:
|
2019-05-18 19:42:59 +00:00
|
|
|
secure: BbreGNDJy20922za7OhJG5TERzfX+dJSBQwttNTJkLvszbqMov6hhAtRb3P45hpf
|
2019-02-14 23:30:42 +00:00
|
|
|
provider: GitHub
|
|
|
|
on:
|
|
|
|
branch: master
|
2019-05-18 20:26:32 +00:00
|
|
|
appveyor_repo_tag: true
|