forked from gtk-rs/gir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
33 lines (30 loc) · 1.15 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
environment:
matrix:
- RUST: stable
BITS: 32
- RUST: stable
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/channel-rust-stable"
- ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
- if NOT "%RUST%" == "stable" set RUST_VERSION=%RUST%
- SET RUST_URL=https://static.rust-lang.org/dist/rust-%RUST_VERSION%-%ARCH%-pc-windows-gnu.exe
- SET PATH=C:\Rust\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin
- SET LIBGIT2_SYS_USE_PKG_CONFIG=1
- ps: Start-FileDownload $Env:RUST_URL -FileName rust-dist.exe
- rust-dist.exe /VERYSILENT /NORESTART /COMPONENTS="Rustc,Gcc,Cargo,Std" /DIR="C:\Rust"
- rustc -V
- cargo -V
- pacman --noconfirm -S mingw-w64-%ARCH%-gtk3 mingw-w64-%ARCH%-libgit2
build_script:
- git clone -q https://github.com/gtk-rs/gir-files tests/gir-files
- cargo build --release
- cargo test --release
- cd tests\sys
- FOR %%I IN (gir-*.toml) DO cargo run --release -- -c %%I
- cd sys_build
- cargo build
- cargo build --features v3_20
test: false