Skip to content

Commit 7e51de8

Browse files
Samuel Ortizrbradford
authored andcommitted
buildkite: Switch to the rust-vmm-ci pipeline
We now have 2 pipelines: One coming from rust-vmm-ci and another one specific to linux-loader. The latter builds with all features enabled. Next step: Include rust-vmm-ci as a git submodule. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 983b4af commit 7e51de8

File tree

2 files changed

+180
-87
lines changed

2 files changed

+180
-87
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,6 @@
1+
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
13
steps:
2-
- label: "build-gnu-x86"
3-
commands:
4-
- cargo build --release
5-
retry:
6-
automatic: false
7-
agents:
8-
platform: x86_64.metal
9-
plugins:
10-
- docker#v3.0.1:
11-
image: "rustvmm/dev:v2"
12-
always-pull: true
13-
14-
- label: "style"
15-
command: cargo fmt --all -- --check
16-
retry:
17-
automatic: false
18-
agents:
19-
platform: x86_64.metal
20-
plugins:
21-
- docker#v3.0.1:
22-
image: "rustvmm/dev:v2"
23-
always-pull: true
24-
25-
- label: "unittests-gnu-x86"
26-
commands:
27-
- cargo test
28-
retry:
29-
automatic: false
30-
agents:
31-
platform: x86_64.metal
32-
plugins:
33-
- docker#v3.0.1:
34-
privileged: true
35-
image: "rustvmm/dev:v2"
36-
always-pull: true
37-
38-
- label: "build-gnu-x86-elf"
39-
commands:
40-
- cargo build --release --features elf
41-
retry:
42-
automatic: false
43-
agents:
44-
platform: x86_64.metal
45-
plugins:
46-
- docker#v3.0.1:
47-
image: "rustvmm/dev:v2"
48-
always-pull: true
49-
50-
- label: "unittests-gnu-x86-elf"
51-
commands:
52-
- cargo test --features elf
53-
retry:
54-
automatic: false
55-
agents:
56-
platform: x86_64.metal
57-
plugins:
58-
- docker#v3.0.1:
59-
privileged: true
60-
image: "rustvmm/dev:v2"
61-
624
- label: "build-gnu-x86-bzimage"
635
commands:
646
- cargo build --release --features bzimage
@@ -71,39 +13,14 @@ steps:
7113
image: "rustvmm/dev:v2"
7214
always-pull: true
7315

74-
- label: "unittests-gnu-x86-bzimage"
75-
commands:
76-
- cargo test --features bzimage
77-
retry:
78-
automatic: false
79-
agents:
80-
platform: x86_64.metal
81-
plugins:
82-
- docker#v3.0.1:
83-
privileged: true
84-
image: "rustvmm/dev:v2"
85-
86-
- label: "clippy-x86"
87-
commands:
88-
- cargo clippy --all -- -D warnings
89-
retry:
90-
automatic: false
91-
agents:
92-
platform: x86_64.metal
93-
plugins:
94-
- docker#v3.0.1:
95-
image: "rustvmm/dev:v2"
96-
always-pull: true
97-
98-
- label: "coverage-x86"
16+
- label: "build-musl-x86-bzimage"
9917
commands:
100-
- pytest tests/test_coverage.py
18+
- cargo build --release --features bzimage --target x86_64-unknown-linux-musl
10119
retry:
10220
automatic: false
10321
agents:
10422
platform: x86_64.metal
10523
plugins:
10624
- docker#v3.0.1:
107-
privileged: true
10825
image: "rustvmm/dev:v2"
10926
always-pull: true

.buildkite/rust-vmm-ci-pipeline.yml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
steps:
4+
- label: "build-gnu-x86"
5+
commands:
6+
- cargo build --release
7+
retry:
8+
automatic: false
9+
agents:
10+
platform: x86_64.metal
11+
plugins:
12+
- docker#v3.0.1:
13+
image: "rustvmm/dev:v2"
14+
always-pull: true
15+
16+
- label: "build-gnu-arm"
17+
commands:
18+
- cargo build --release
19+
retry:
20+
automatic: false
21+
agents:
22+
platform: arm.metal
23+
plugins:
24+
- docker#v3.0.1:
25+
image: "rustvmm/dev:v2"
26+
always-pull: true
27+
28+
- label: "build-musl-x86"
29+
commands:
30+
- cargo build --release --target x86_64-unknown-linux-musl
31+
retry:
32+
automatic: false
33+
agents:
34+
platform: x86_64.metal
35+
plugins:
36+
- docker#v3.0.1:
37+
image: "rustvmm/dev:v2"
38+
always-pull: true
39+
40+
- label: "build-musl-arm"
41+
commands:
42+
- cargo build --release --target aarch64-unknown-linux-musl
43+
retry:
44+
automatic: false
45+
agents:
46+
platform: arm.metal
47+
plugins:
48+
- docker#v3.0.1:
49+
image: "rustvmm/dev:v2"
50+
always-pull: true
51+
52+
- label: "style"
53+
command: cargo fmt --all -- --check
54+
retry:
55+
automatic: false
56+
agents:
57+
platform: x86_64.metal
58+
plugins:
59+
- docker#v3.0.1:
60+
image: "rustvmm/dev:v2"
61+
always-pull: true
62+
63+
- label: "unittests-gnu-x86"
64+
commands:
65+
- cargo test --all-features
66+
retry:
67+
automatic: false
68+
agents:
69+
platform: x86_64.metal
70+
plugins:
71+
- docker#v3.0.1:
72+
privileged: true
73+
image: "rustvmm/dev:v2"
74+
always-pull: true
75+
76+
- label: "unittests-gnu-arm"
77+
commands:
78+
- cargo test --all-features
79+
retry:
80+
automatic: false
81+
agents:
82+
platform: arm.metal
83+
plugins:
84+
- docker#v3.0.1:
85+
privileged: true
86+
image: "rustvmm/dev:v2"
87+
always-pull: true
88+
89+
- label: "unittests-musl-x86"
90+
command:
91+
- cargo test --all-features --target x86_64-unknown-linux-musl
92+
retry:
93+
automatic: false
94+
agents:
95+
platform: x86_64.metal
96+
plugins:
97+
- docker#v3.0.1:
98+
privileged: true
99+
image: "rustvmm/dev:v2"
100+
always-pull: true
101+
102+
- label: "unittests-musl-arm"
103+
command:
104+
- cargo test --all-features --target aarch64-unknown-linux-musl
105+
retry:
106+
automatic: false
107+
agents:
108+
platform: arm.metal
109+
plugins:
110+
- docker#v3.0.1:
111+
privileged: true
112+
image: "rustvmm/dev:v2"
113+
always-pull: true
114+
115+
- label: "clippy-x86"
116+
commands:
117+
- cargo clippy --all -- -D warnings
118+
retry:
119+
automatic: false
120+
agents:
121+
platform: x86_64.metal
122+
plugins:
123+
- docker#v3.0.1:
124+
image: "rustvmm/dev:v2"
125+
always-pull: true
126+
127+
- label: "clippy-arm"
128+
commands:
129+
- cargo clippy --all -- -D warnings
130+
retry:
131+
automatic: false
132+
agents:
133+
platform: arm.metal
134+
plugins:
135+
- docker#v3.0.1:
136+
image: "rustvmm/dev:v2"
137+
always-pull: true
138+
139+
- label: "check-warnings-x86"
140+
commands:
141+
- RUSTFLAGS="-D warnings" cargo check --all-targets
142+
retry:
143+
automatic: false
144+
agents:
145+
platform: x86_64.metal
146+
plugins:
147+
- docker#v3.0.1:
148+
privileged: true
149+
image: "rustvmm/dev:v2"
150+
always-pull: true
151+
152+
- label: "check-warnings-arm"
153+
command:
154+
- RUSTFLAGS="-D warnings" cargo check --all-targets
155+
retry:
156+
automatic: false
157+
agents:
158+
platform: arm.metal
159+
plugins:
160+
- docker#v3.0.1:
161+
privileged: true
162+
image: "rustvmm/dev:v2"
163+
always-pull: true
164+
165+
- label: "coverage-x86"
166+
commands:
167+
- pytest tests/test_coverage.py
168+
retry:
169+
automatic: false
170+
agents:
171+
platform: x86_64.metal
172+
plugins:
173+
- docker#v3.0.1:
174+
privileged: true
175+
image: "rustvmm/dev:v2"
176+
always-pull: true

0 commit comments

Comments
 (0)