-
Notifications
You must be signed in to change notification settings - Fork 86
/
buildbuddy.yaml
195 lines (186 loc) · 5.82 KB
/
buildbuddy.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
x_templates:
action_setup:
- &action_base
os: "darwin"
triggers:
push:
branches:
- "main"
pull_request:
branches:
- "*"
- &arm64
arch: "arm64"
- &bazel_in_repo_version
# No change, uses `.bazelversion`, just used to make it clear
env: {}
- &bazel_previous_lts
env:
USE_BAZEL_VERSION: 6.x
- &bazel_lts
env:
USE_BAZEL_VERSION: 7.x
- &bazel_head
env:
# See https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/3029
#
# Temporary change to make CI pass until the fix is in `last_green`
USE_BAZEL_VERSION: dd2464a5933e0a5a6765024573832717b71989bf
- &normal_resources
resource_requests: { memory: 6GB }
- &light_resources
resource_requests: { memory: 3GB, cpu: 1 }
# Workspace selection
- &root_workspace
git_clean_exclude:
- bazel-output-base
- setup-bazel-output-base
- &examples_integration_workspace
bazel_workspace_dir: examples/integration
git_clean_exclude:
- setup-bazel-output-base
- examples/integration/bazel-output-base
- examples/integration/setup-bazel-output-base
- &examples_rules_ios_workspace
bazel_workspace_dir: examples/rules_ios
git_clean_exclude:
- setup-bazel-output-base
- examples/sanitizers/bazel-output-base
- examples/sanitizers/setup-bazel-output-base
commands:
- &generate_integration "--output_base=bazel-output-base run --config=workflows //test/fixtures:update"
- &validate_integration "--output_base=bazel-output-base run --config=workflows //test/fixtures:validate"
- &build_all "--output_base=bazel-output-base build --config=workflows //..."
- &test_all "--output_base=bazel-output-base test --config=workflows //..."
- &nobzlmod_build_all "--output_base=bazel-output-base build --config=workflows --config=nobzlmod //..."
- &nobzlmod_test_all "--output_base=bazel-output-base test --config=workflows --config=nobzlmod //..."
- &nobzlmod_generate_integration "--output_base=bazel-output-base run --config=workflows --config=nobzlmod //test/fixtures:update"
actions:
- name: Buildifier Lint
<<: *bazel_in_repo_version
<<: *action_base
<<: *light_resources
<<: *root_workspace
bazel_commands:
- "run --config=workflows //:buildifier.check"
- name: Docs
<<: *bazel_in_repo_version
<<: *action_base
<<: *light_resources
<<: *root_workspace
bazel_commands:
- "test --config=workflows //docs:diff_test"
- name: Test
<<: *bazel_in_repo_version
<<: *arm64
<<: *normal_resources
<<: *action_base
<<: *root_workspace
bazel_commands:
- *test_all
- name: Test - Bazel Previous LTS
<<: *bazel_previous_lts
<<: *arm64
<<: *normal_resources
<<: *action_base
<<: *root_workspace
bazel_commands:
- *test_all
- name: Test - Bazel LTS
<<: *bazel_lts
<<: *arm64
<<: *normal_resources
<<: *action_base
<<: *root_workspace
bazel_commands:
- *test_all
- name: Test - Bazel HEAD
<<: *bazel_head
<<: *arm64
<<: *normal_resources
<<: *action_base
<<: *root_workspace
bazel_commands:
- *test_all
- name: Integration Test - "examples/integration" - Bazel Previous LTS
<<: *bazel_previous_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
# Not validate since Bazel 8 Bzlmod paths are different
- *generate_integration
- *build_all
- name: Integration Test - "examples/integration" - Bazel LTS
<<: *bazel_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
# Not validate since Bazel 8 Bzlmod paths are different
- *generate_integration
- *build_all
- name: Integration Test - "examples/integration" - Bazel LTS using WORKSPACE
<<: *bazel_lts
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
- *nobzlmod_generate_integration
- *nobzlmod_build_all
- name: Integration Test - "examples/integration" - Bazel HEAD
<<: *bazel_head
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
- *validate_integration
- *build_all
- name: Integration Test - "examples/integration" - Bazel HEAD using WORKSPACE
<<: *bazel_head
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
- *nobzlmod_generate_integration
- *nobzlmod_build_all
- name: Integration Test - "examples/rules_ios" - Bazel Previous LTS
<<: *bazel_previous_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_rules_ios_workspace
bazel_commands:
# Not validate since Bazel 7 Bzlmod paths are different
- *generate_integration
- *build_all
- name: Integration Test - "examples/rules_ios" - Bazel LTS
<<: *bazel_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_rules_ios_workspace
bazel_commands:
- *validate_integration
- *build_all
- name: Integration Test - "examples/rules_ios" - Bazel LTS using WORKSPACE
<<: *bazel_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_rules_ios_workspace
bazel_commands:
- *validate_integration
- *nobzlmod_build_all
## Uncomment once rules_ios supports Bazel 8
# - name: Integration Test - "examples/rules_ios" - Bazel HEAD
# <<: *bazel_head
# <<: *action_base
# <<: *normal_resources
# <<: *examples_rules_ios_workspace
# bazel_commands:
# - *validate_integration
# - *build_all