Skip to content

Commit 048d1b8

Browse files
author
ma.rybakov
committed
Add Windows CI
1 parent 46546aa commit 048d1b8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

appveyor.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
environment:
2+
global:
3+
PROJECT_NAME: lazy_static
4+
matrix:
5+
# Stable channel
6+
- TARGET: i686-pc-windows-gnu
7+
CHANNEL: stable
8+
- TARGET: i686-pc-windows-msvc
9+
CHANNEL: stable
10+
- TARGET: x86_64-pc-windows-gnu
11+
CHANNEL: stable
12+
- TARGET: x86_64-pc-windows-msvc
13+
CHANNEL: stable
14+
# Beta channel
15+
- TARGET: i686-pc-windows-gnu
16+
CHANNEL: beta
17+
- TARGET: i686-pc-windows-msvc
18+
CHANNEL: beta
19+
- TARGET: x86_64-pc-windows-gnu
20+
CHANNEL: beta
21+
- TARGET: x86_64-pc-windows-msvc
22+
CHANNEL: beta
23+
# Nightly channel
24+
- TARGET: i686-pc-windows-gnu
25+
CHANNEL: nightly
26+
- TARGET: i686-pc-windows-msvc
27+
CHANNEL: nightly
28+
- TARGET: x86_64-pc-windows-gnu
29+
CHANNEL: nightly
30+
- TARGET: x86_64-pc-windows-msvc
31+
CHANNEL: nightly
32+
33+
# Install Rust and Cargo
34+
# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
35+
install:
36+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable"
37+
- ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
38+
- if NOT "%CHANNEL%" == "stable" set RUST_VERSION=%CHANNEL%
39+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe"
40+
- rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
41+
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
42+
- if "%TARGET%" == "i686-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw32\bin
43+
- if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin
44+
- rustc -V
45+
- cargo -V
46+
47+
build: false
48+
49+
test_script:
50+
- cargo build --verbose
51+
- cargo test

0 commit comments

Comments
 (0)