-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
52 lines (49 loc) · 1.2 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
52 lines (49 loc) · 1.2 KB
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
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"
expire_in: 1 week
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"
expire_in: 1 week