-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
71 lines (56 loc) · 1.04 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
68
69
70
71
stages:
- build
build-linux:
stage: build
only:
- master
script:
- cross test
- cross build --release
- cp target/x86_64-unknown-linux-gnu/release/vhost-discovery-tool vhdt
- eu-elfcompress vhdt
- strip vhdt
- upx -9 --lzma vhdt
artifacts:
name: vhdt-rockylinux8
paths:
- vhdt
- README.md
expire_in: 1 week
tags:
- rockylinux8
build-rhel7:
stage: build
only:
- master
script:
- cross test
- cross build --release
- cp target/x86_64-unknown-linux-gnu/release/vhost-discovery-tool vhdt
- eu-elfcompress vhdt
- strip vhdt
- upx -9 --lzma vhdt
artifacts:
name: vhdt-rhel7
paths:
- vhdt
- README.md
expire_in: 1 week
tags:
- rhel7
build-windows:
stage: build
only:
- master
script:
- cargo test
- cargo build --release
- copy target/release/vhost-discovery-tool.exe ./vhdt.exe
artifacts:
name: vhdt-windows
paths:
- vhdt.exe
- README.md
expire_in: 1 week
tags:
- windows