1
1
---
2
+ aspects_flags : &aspects_flags
3
+ - " --config=rustfmt"
4
+ - " --config=clippy"
2
5
default_linux_targets : &default_linux_targets
3
- - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
4
- - " ..."
5
- - " @examples//..."
6
+ - " //..."
6
7
# TODO: Switch manual tag to platform constraint after bazel 4.0.
7
8
- " //test/versioned_dylib:versioned_dylib_test"
8
- # Bindgen currently only has a working toolchain for 18.04
9
- - " -@examples//ffi/rust_calling_c/simple/..."
9
+ default_macos_targets : &default_macos_targets
10
+ - " //..."
11
+ default_windows_targets : &default_windows_targets
12
+ - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
13
+ - " //..."
14
+ - " -//bindgen/..."
15
+ - " -//test/test_env/..."
16
+ - " -//test/proto/..."
17
+ - " -//tools/rust_analyzer/..."
18
+ - " -//test/rustfmt/..."
19
+ # rust_doc_test targets are currently broken on windows
20
+ # see: https://github.com/bazelbuild/rules_rust/issues/887
21
+ - " -//test/chained_direct_deps:mod3_doc_test"
10
22
tasks :
11
- ubuntu1804 :
12
- build_targets : *default_linux_targets
13
- test_targets :
14
- - " ..."
15
- - " @examples//..."
16
- # TODO: Switch manual tag to platform constraint after bazel 4.0.
17
- - " //test/versioned_dylib:versioned_dylib_test"
18
- build_flags :
19
- - " --config=rustfmt"
20
- - " --config=clippy"
21
23
ubuntu2004 :
22
- name : " Minimum Supported Version"
23
- bazel : " 3.5.0"
24
24
build_targets : *default_linux_targets
25
25
test_targets : *default_linux_targets
26
- build_flags :
27
- - " --config=rustfmt"
28
- - " --config=clippy"
29
- macos :
30
- osx_targets : &osx_targets
31
- - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
32
- - " ..."
33
- - " @examples//..."
34
- # This test requires --incompatible_macos_set_install_name and Bazel 4.2.0+
35
- - " -@examples//ffi/rust_calling_c:matrix_dylib_test"
36
- build_targets : *osx_targets
37
- test_targets : *osx_targets
38
- build_flags :
39
- - " --config=rustfmt"
40
- - " --config=clippy"
41
26
rbe_ubuntu1604 :
27
+ build_targets :
28
+ - " //..."
42
29
test_targets :
43
30
- " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
44
- - " ..."
31
+ - " // ..."
45
32
- " //test/..."
46
- - " @examples//..."
47
33
- " -//test/conflicting_deps:conflicting_deps_test"
48
34
# rust_doc_test is likely not fully sandboxed
49
35
- " -//test/chained_direct_deps:mod3_doc_test"
50
- - " -@examples//fibonacci:fibonacci_doc_test"
51
- - " -@examples//hello_lib:hello_lib_doc_test"
52
- - " -@examples//ffi/rust_calling_c/simple/..."
53
- # See https://github.com/bazelbuild/bazel/issues/9987
54
- - " -@examples//ffi/rust_calling_c:matrix_dylib_test"
55
- build_flags :
56
- - " --config=rustfmt"
57
- - " --config=clippy"
36
+ macos :
37
+ build_targets : *default_macos_targets
38
+ test_targets : *default_macos_targets
39
+ build_flags : *aspects_flags
58
40
windows :
59
41
build_flags :
60
42
- " --enable_runfiles" # this is not enabled by default on windows and is necessary for the cargo build scripts
61
43
- " --config=rustfmt"
62
44
- " --config=clippy"
63
- windows_targets : &windows_targets
45
+ build_targets : *default_windows_targets
46
+ test_targets : *default_windows_targets
47
+ ubuntu2004_with_aspects :
48
+ name : With Aspects
49
+ platform : ubuntu2004
50
+ build_targets : *default_linux_targets
51
+ test_targets : *default_linux_targets
52
+ build_flags : *aspects_flags
53
+ rbe_ubuntu1604_with_aspects :
54
+ name : With Aspects
55
+ platform : rbe_ubuntu1604
56
+ build_targets : *default_linux_targets
57
+ test_targets :
64
58
- " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
65
59
- " ..."
66
- - " -//bindgen/..."
67
- - " -//test/test_env/..."
68
- - " -//test/proto/..."
69
- - " -//tools/rust_analyzer/..."
70
- - " -//test/rustfmt/..."
71
- - " @examples//..."
72
- - " -@examples//ffi/rust_calling_c:matrix_dylib_test"
73
- - " -@examples//ffi/rust_calling_c:matrix_dynamically_linked"
74
- - " -@examples//ffi/rust_calling_c/simple/..."
75
- - " -@examples//sys/..."
76
- - " -@examples//proto/..."
77
- - " -@examples//wasm/..."
78
- # rust_doc_test targets are currently broken on windows
79
- # see: https://github.com/bazelbuild/rules_rust/issues/887
80
- - " -@examples//hello_lib:hello_lib_doc_test"
81
- - " -@examples//fibonacci:fibonacci_doc_test"
60
+ - " //test/..."
61
+ - " -//test/conflicting_deps:conflicting_deps_test"
62
+ # rust_doc_test is likely not fully sandboxed
82
63
- " -//test/chained_direct_deps:mod3_doc_test"
83
- build_targets : *windows_targets
84
- test_targets : *windows_targets
85
- examples :
86
- name : Examples
87
- platform : ubuntu1804
88
- working_directory : examples
89
- test_targets :
90
- - //...
64
+ build_flags : *aspects_flags
65
+ macos_with_aspects :
66
+ name : With Aspects
67
+ platform : macos
68
+ build_targets : *default_macos_targets
69
+ test_targets : *default_macos_targets
70
+ build_flags : *aspects_flags
71
+ windows_with_aspects :
72
+ name : With Aspects
73
+ platform : windows
91
74
build_flags :
75
+ - " --enable_runfiles" # this is not enabled by default on windows and is necessary for the cargo build scripts
92
76
- " --config=rustfmt"
93
77
- " --config=clippy"
94
- docs_linux :
95
- name : Docs
78
+ build_targets : *default_windows_targets
79
+ test_targets : *default_windows_targets
80
+ ubuntu2004_clang :
81
+ name : With Clang
82
+ platform : ubuntu2004
83
+ build_flags :
84
+ - " --config=rustfmt"
85
+ - " --config=clippy"
86
+ - " --repo_env=CC=clang"
87
+ # TODO(hlopko): Make this work (some tests were failing)
88
+ # - "--linkopt=-fuse-ld=lld"
89
+ build_targets : *default_linux_targets
90
+ test_targets : *default_linux_targets
91
+ ubuntu1804 :
92
+ name : " Min Bazel Version"
93
+ bazel : " 3.5.0"
94
+ platform : ubuntu1804
95
+ build_targets : *default_linux_targets
96
+ test_targets : *default_linux_targets
97
+ ubuntu1804_with_aspects :
98
+ name : " Min Bazel Version With Aspects"
99
+ bazel : " 3.5.0"
96
100
platform : ubuntu1804
101
+ build_targets : *default_linux_targets
102
+ test_targets : *default_linux_targets
103
+ build_flags : *aspects_flags
104
+ linux_docs :
105
+ name : Docs
106
+ platform : ubuntu2004
97
107
working_directory : docs
98
108
build_targets :
99
109
- //...
100
110
run_targets :
101
111
- " //:test_docs"
102
112
clippy_failure :
103
113
name : Negative Clippy Tests
104
- platform : ubuntu1804
114
+ platform : ubuntu2004
105
115
run_targets :
106
116
- " //test/clippy:clippy_failure_test"
107
117
rustfmt_failure :
108
118
name : Negative Rustfmt Tests
109
119
platform : ubuntu2004
110
120
run_targets :
111
121
- " //test/rustfmt:test_runner"
112
- ubuntu2004_clang :
113
- name : Ubuntu 20.04 with Clang
122
+ ubuntu2004_examples :
123
+ name : Examples
114
124
platform : ubuntu2004
125
+ working_directory : examples
126
+ build_targets :
127
+ - " //..."
128
+ test_targets :
129
+ - " //..."
130
+ build_flags : *aspects_flags
131
+ rbe_ubuntu1604_examples :
132
+ name : Examples
133
+ platform : rbe_ubuntu1604
134
+ working_directory : examples
135
+ rbe_examples_targets : &rbe_examples_targets
136
+ - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
137
+ - " //..."
138
+ # TODO: This requires an updated `rules_foreign_cc`
139
+ - " -//sys/..."
140
+ # rust_doc_test is likely not fully sandboxed
141
+ - " -//fibonacci:fibonacci_doc_test"
142
+ - " -//hello_lib:hello_lib_doc_test"
143
+ - " -//ffi/rust_calling_c/simple/..."
144
+ # See https://github.com/bazelbuild/bazel/issues/9987
145
+ - " -//ffi/rust_calling_c:matrix_dylib_test"
146
+ build_targets : *rbe_examples_targets
147
+ test_targets : *rbe_examples_targets
148
+ build_flags : *aspects_flags
149
+ macos_examples :
150
+ name : Examples
151
+ platform : macos
152
+ working_directory : examples
153
+ build_targets :
154
+ - " //..."
155
+ test_targets :
156
+ - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
157
+ - " //..."
158
+ # This test requires --incompatible_macos_set_install_name and Bazel 4.2.0+
159
+ - " -//ffi/rust_calling_c:matrix_dylib_test"
160
+ build_flags : *aspects_flags
161
+ windows_examples :
162
+ name : Examples
163
+ platform : windows
164
+ working_directory : examples
115
165
build_flags :
166
+ - " --enable_runfiles" # this is not enabled by default on windows and is necessary for the cargo build scripts
116
167
- " --config=rustfmt"
117
168
- " --config=clippy"
118
- - " --repo_env=CC=clang"
119
- # TODO(hlopko): Make this work (some tests were failing)
120
- # - "--linkopt=-fuse-ld=lld"
121
- build_targets : *default_linux_targets
122
- test_targets : *default_linux_targets
169
+ windows_targets : &windows_targets
170
+ - " --" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245
171
+ - " //..."
172
+ - " -//ffi/rust_calling_c:matrix_dylib_test"
173
+ - " -//ffi/rust_calling_c:matrix_dynamically_linked"
174
+ - " -//ffi/rust_calling_c/simple/..."
175
+ - " -//sys/..."
176
+ - " -//proto/..."
177
+ - " -//wasm/..."
178
+ # rust_doc_test targets are currently broken on windows
179
+ # see: https://github.com/bazelbuild/rules_rust/issues/887
180
+ - " -//hello_lib:hello_lib_doc_test"
181
+ - " -//fibonacci:fibonacci_doc_test"
182
+ build_targets : *windows_targets
183
+ test_targets : *windows_targets
123
184
crate_universe_examples_ubuntu2004 :
124
185
name : Crate Universe Examples
125
186
platform : ubuntu2004
@@ -130,9 +191,7 @@ tasks:
130
191
- " //..."
131
192
test_targets :
132
193
- " //..."
133
- build_flags :
134
- - " --config=rustfmt"
135
- - " --config=clippy"
194
+ build_flags : *aspects_flags
136
195
crate_universe_rbe_ubuntu1604 :
137
196
name : Crate Universe Examples
138
197
platform : rbe_ubuntu1604
@@ -143,9 +202,7 @@ tasks:
143
202
- " //..."
144
203
test_targets :
145
204
- " //..."
146
- build_flags :
147
- - " --config=rustfmt"
148
- - " --config=clippy"
205
+ build_flags : *aspects_flags
149
206
crate_universe_examples_macos :
150
207
name : Crate Universe Examples
151
208
platform : macos
@@ -156,9 +213,7 @@ tasks:
156
213
- " //..."
157
214
test_targets :
158
215
- " //..."
159
- build_flags :
160
- - " --config=rustfmt"
161
- - " --config=clippy"
216
+ build_flags : *aspects_flags
162
217
crate_universe_examples_windows :
163
218
name : Crate Universe Examples
164
219
platform : windows
0 commit comments