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