forked from sodiumoxide/sodiumoxide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
47 lines (39 loc) · 1.38 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: Visual Studio 2017
environment:
matrix:
# stable x86_64 with static libsodium from binary release
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: stable
RUST_BACKTRACE: 1
# stable x86 with static libsodium from binary release
- TARGET: i686-pc-windows-msvc
RUST_CHANNEL: stable
RUST_BACKTRACE: 1
# stable x86_64 with static libsodium from binary release
- TARGET: x86_64-pc-windows-gnu
RUST_CHANNEL: stable
RUST_BACKTRACE: 1
# stable x86_64 with static libsodium from binary release
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: stable
RUST_BACKTRACE: 1
install:
- git submodule update --init --recursive
- ps: |
# Install Rust
appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
cmd.exe /c .\rustup-init.exe -y --profile minimal --default-host "$env:TARGET" --default-toolchain "$env:RUST_CHANNEL" 2`>`&1
$env:PATH += ";$env:USERPROFILE\.cargo\bin"
If ($env:SODIUM_USE_PKG_CONFIG -eq '1') {
# Install libsodium via vcpkg
vcpkg install "libsodium:$env:VCPKG_TARGET"
}
# Add GCC to PATH if needed.
- if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin
cache:
- C:\Users\appveyor\.cargo\registry
- target
build: false
test_script:
- cargo test --all --target %TARGET%
- cargo test --all --release --target %TARGET%