forked from sciter-sdk/rust-sciter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
37 lines (37 loc) · 1.31 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
version: 0.4.0.{build}
branches:
only:
- master
environment:
matrix:
- TARGET: 1.7.0-x86_64-pc-windows-msvc
ARCH: 64
- TARGET: nightly-x86_64-pc-windows-msvc
ARCH: 64
- TARGET: nightly-i686-pc-windows-msvc
ARCH: 32
install:
- cmd: echo Testing sciter%ARCH% %CONFIGURATION% with %TARGET% under %PLATFORM%.
- cmd: echo Current directory is %APPVEYOR_BUILD_FOLDER%
- cmd: mkdir ..\deps
- cmd: curl -so "..\deps\sciter%ARCH%.dll" "https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin/sciter%ARCH%.dll"
- cmd: curl -so "..\deps\sciter%ARCH%.lib" "https://raw.githubusercontent.com/c-smile/sciter-sdk/master/lib/sciter%ARCH%.lib"
- cmd: curl -so "..\deps\rust-install.exe" "https://static.rust-lang.org/dist/rust-%TARGET%.exe"
- cmd: ..\deps\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust"
- cmd: set PATH=%PATH%;C:\rust\bin;C:\projects\deps
build_script:
- cmd: cd
- cargo clean
- cmd: echo Building library
- cmd: mkdir target\release\deps
- cmd: copy ..\deps\sciter%ARCH%.lib target\release\deps
- cargo build --release
- cmd: echo Building examples
- cmd: mkdir examples\target\release\deps
- cmd: copy ..\deps\sciter%ARCH%.lib examples\target\release\deps
- cmd: cd examples
- cargo build --release
- cmd: cd ..
test_script:
- cmd: cd
- cargo test --release