forked from gtk-rs/cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
29 lines (26 loc) · 1014 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
environment:
matrix:
- RUST: stable
BITS: 32
- RUST: stable
BITS: 64
install:
- IF "%BITS%" == "32" SET ARCH=i686
- IF "%BITS%" == "64" SET ARCH=x86_64
- curl -sSf -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe --default-host "%ARCH%-pc-windows-gnu" --default-toolchain %RUST% -y
# Remove old dll that broke test. See https://github.com/gtk-rs/cairo/pull/160
- IF "%BITS%" == "32" ren C:\Users\appveyor\.rustup\toolchains\stable-i686-pc-windows-gnu\bin\libgcc_s_dw2-1.dll _libgcc_s_dw2-1.dll
- SET PATH=C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin
- rustc -Vv
- cargo -Vv
- pacman --noconfirm -S mingw-w64-%ARCH%-gtk3
build_script:
- cargo test --no-default-features --features "png"
- mkdir .cargo
- echo paths = ["."] > .cargo\config
- git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples
- cd _examples
- cargo build
- cargo build --features "cairo-rs/png gtk_3_18"
test: false