-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathbuildbuddy.yaml
More file actions
127 lines (119 loc) · 3.18 KB
/
buildbuddy.yaml
File metadata and controls
127 lines (119 loc) · 3.18 KB
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
x_templates:
action_setup:
- &action_base
os: "darwin"
self_hosted: true
pool: workflows
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: 8.x
- &bazel_lts
env:
USE_BAZEL_VERSION: 9.x
- &bazel_head
env:
USE_BAZEL_VERSION: last_green
- &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
commands:
- &generate_integration "--output_base=bazel-output-base run --config=workflows //:xcodeproj"
- &build_all "--output_base=bazel-output-base build --config=workflows //..."
- &test_all "--output_base=bazel-output-base test --config=workflows //..."
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:
- *generate_integration
- *build_all
- name: Integration Test - "examples/integration" - Bazel LTS
<<: *bazel_lts
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
- *generate_integration
- *build_all
- name: Integration Test - "examples/integration" - Bazel HEAD
<<: *bazel_head
<<: *arm64
<<: *action_base
<<: *normal_resources
<<: *examples_integration_workspace
bazel_commands:
- *generate_integration
- *build_all