-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
47 lines (44 loc) · 1.06 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
stages:
- build
- deploy
build_linux:
stage: build
image: rust:1.40-alpine
script:
- mkdir -p .cargo
- rustup target add x86_64-unknown-linux-musl
- env CARGO_HOME=$PWD/.cargo cargo build --release --target x86_64-unknown-linux-musl
- uname -r
- uname -r > target/kernel_version.txt
artifacts:
paths:
- target
expire_in: 1 week
cache:
paths:
- .cargo
build_docs:
stage: build
image: rust:1.40-alpine
script:
- rustdoc getting_started.md --markdown-no-toc --markdown-css milligram.min.css
- mv doc/getting_started.html doc/index.html
artifacts:
paths:
- doc
expire_in: 1 week
pages:
only:
- master
stage: deploy
image: centos:7
script:
- mkdir -p public/linux
- cp doc/* public/
- cp target/x86_64-unknown-linux-musl/release/git-p public/linux/
dependencies:
- build_docs
- build_linux
artifacts:
paths:
- public