forked from gtk-rs/gir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
31 lines (28 loc) · 1022 Bytes
/
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
environment:
matrix:
- RUST_VERSION: 1.6.0
BITS: 32
- RUST_VERSION: 1.6.0
BITS: 64
install:
- IF "%BITS%" == "32" SET ARCH=i686
- IF "%BITS%" == "64" SET ARCH=x86_64
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:ARCH}-pc-windows-gnu.exe" -FileName rust-dist.exe
- rust-dist.exe /VERYSILENT /NORESTART /COMPONENTS="Rustc,Gcc,Cargo,Std" /DIR="C:\Rust"
- SET PATH=C:\Rust\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin
- SET PATH=C:\msys64\mingw%BITS%\bin;C:\msys64\usr\bin;%PATH%
- pacman --noconfirm -S mingw-w64-%ARCH%-gtk3
- SET GTK_LIB_DIR=C:\msys64\mingw%BITS%\lib
build_script:
- git clone -q https://github.com/gkoz/gir-files tests/gir-files
- rustc -V
- cargo build --release
- cargo test --release
- ps: >-
foreach ($file in Get-ChildItem "tests\sys\gir-*.toml") {
cargo run --release -- -c $file
}
- cd tests\sys\sys_build
- cargo build
- cargo build --features 3.16
test: false