-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (47 loc) · 1.15 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
stages:
- check
- build
cargo check:
stage: check
tags:
- linux-docker-x64
image: rust:latest
script:
- rustup component add rustfmt
- |
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && \
apt-get install -y --no-install-recommends libclang-dev libtss2-dev
rm -r /var/lib/apt/lists /var/cache/apt/archives
- make format check
cargo doc:
stage: build
tags:
- linux-docker-x64
image: rust:latest
script:
- |
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && \
apt-get install -y --no-install-recommends libclang-dev libtss2-dev
rm -r /var/lib/apt/lists /var/cache/apt/archives
- make docs
- cp -f docs/html/redir.html target/doc/index.html
artifacts:
paths:
- "target/doc"
cargo build:
stage: build
tags:
- linux-docker-x64
image: rust:latest
script:
- |
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && \
apt-get install -y --no-install-recommends libclang-dev libtss2-dev
rm -r /var/lib/apt/lists /var/cache/apt/archives
- make build
artifacts:
paths:
- "target/release/*.rlib"