-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
67 lines (61 loc) · 1.68 KB
/
.gitlab-ci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.job_template: &job_definition
tags:
- win64
script:
- rustup override set %RUST%
- rustc --version && cargo --version
- set VCPKG_ROOT=%CD%\..\vcp
- echo VCPKG_ROOT is %VCPKG_ROOT%
- cd ..
- if not exist vcp git clone https://github.com/Microsoft/vcpkg vcp
- cd vcp
- del /q downloads\*
- cd
- git checkout master
- git pull
- git log -1 --format=oneline
- cd ..\vcpkg-rs
- cd
- call ..\vcp\bootstrap-vcpkg.bat
- '"%VCPKG_ROOT%\vcpkg.exe" remove --outdated --recurse'
- '"%VCPKG_ROOT%\vcpkg.exe" install curl zeromq openssl'
- rustc --version
- cargo --version
- set RUST_BACKTRACE=1
- set RUST_TEST_THREADS=1
- cargo update
- cargo clean
- cargo build --all --features="extras"
- cargo test --all --features="extras"
- cargo run --manifest-path vcpkg_cli\Cargo.toml -- probe sqlite3
- cargo run --features="extras" --manifest-path systest\Cargo.toml
win64_dynamic:
<<: *job_definition
variables:
TARGET: x86_64-pc-windows-msvc
VCPKGRS_DYNAMIC: 1
RUST: stable
VCPKG_DEFAULT_TRIPLET: x64-windows
win64_static:
<<: *job_definition
variables:
TARGET: x86_64-pc-windows-msvc
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST: stable
VCPKG_DEFAULT_TRIPLET: x64-windows-static
win32_dynamic:
<<: *job_definition
variables:
TARGET: i686-pc-windows-msvc
VCPKGRS_DYNAMIC: 1
RUST: stable
VCPKG_DEFAULT_TRIPLET: x86-windows
win32_static:
<<: *job_definition
variables:
TARGET: i686-pc-windows-msvc
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST: stable
VCPKG_DEFAULT_TRIPLET: x86-windows-static
variables:
VCPKG_PANIC: 1