Skip to content

Commit 97da81c

Browse files
authored
ci: only build GCS on GHA CI builds (googleapis#15341)
1 parent 855ac89 commit 97da81c

4 files changed

Lines changed: 14 additions & 188 deletions

File tree

.github/workflows/macos-bazel.yml

Lines changed: 0 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -31,163 +31,11 @@ jobs:
3131
matrix:
3232
os: [ macos-14 ]
3333
shard:
34-
- Core
35-
- Bigtable
36-
- Pub/Sub
37-
- Spanner
3834
- Storage
39-
- Compute
40-
- AIPlatform
41-
- Shard1
42-
- Shard2
43-
- Other
4435
include:
45-
- shard: Core
46-
targets:
47-
- //google/cloud:all
48-
# - //generator/... # Does not build on macOS
49-
# - //docfx/... # Does not build on macOS
50-
- +//examples/...
51-
- shard: Bigtable
52-
targets:
53-
- //google/cloud/bigtable/...
54-
- shard: Pub/Sub
55-
targets:
56-
- //google/cloud/pubsub/...
57-
- +//google/cloud/pubsublite/...
58-
- shard: Spanner
59-
targets:
60-
- //google/cloud/spanner/...
6136
- shard: Storage
6237
targets:
6338
- //google/cloud/storage/...
64-
# Include the top-level examples because they require the libs anyway.
65-
- shard: Compute
66-
targets:
67-
- //google/cloud/compute/...
68-
- shard: AIPlatform
69-
targets:
70-
- //google/cloud/aiplatform/...
71-
- shard: Shard1
72-
targets:
73-
# Run this:
74-
#
75-
# git grep -l 'class.*Client' 'google/cloud/**_client.h' |
76-
# egrep -v "(bigtable/|internal/|pubsub/|spanner/|storage/)" |
77-
# cut -f -3 -d/| sort | uniq -c | sort -n |
78-
# awk '{ s += $1; print s, $0}'
79-
#
80-
# and pick the approximate midpoint
81-
#
82-
# Also, it is a good idea to keep `sql` and `bigquerycontrol`
83-
# together, as they both require our internal REST libraries.
84-
- //google/cloud/bigquerycontrol/...
85-
- +//google/cloud/appengine/...
86-
- +//google/cloud/dataproc/...
87-
- +//google/cloud/monitoring/...
88-
- +//google/cloud/retail/...
89-
- +//google/cloud/discoveryengine/...
90-
- +//google/cloud/sql/...
91-
- +//google/cloud/dialogflow_cx/...
92-
- +//google/cloud/dialogflow_es/...
93-
- shard: Shard2
94-
targets:
95-
- //google/cloud/networkconnectivity/...
96-
- +//google/cloud/networkservices/...
97-
- +//google/cloud/policytroubleshooter/...
98-
- +//google/cloud/profiler/...
99-
- +//google/cloud/redis/...
100-
- +//google/cloud/securitycenter/...
101-
- +//google/cloud/servicedirectory/...
102-
- +//google/cloud/tpu/...
103-
- +//google/cloud/trace/...
104-
- +//google/cloud/vision/...
105-
- +//google/cloud/workflows/...
106-
- +//google/cloud/beyondcorp/...
107-
- +//google/cloud/billing/...
108-
- +//google/cloud/binaryauthorization/...
109-
- +//google/cloud/gkemulticloud/...
110-
- +//google/cloud/logging/...
111-
- +//google/cloud/notebooks/...
112-
- +//google/cloud/osconfig/...
113-
- +//google/cloud/servicecontrol/...
114-
- +//google/cloud/speech/...
115-
- +//google/cloud/support/...
116-
- +//google/cloud/video/...
117-
- +//google/cloud/datacatalog/...
118-
- +//google/cloud/iam/...
119-
- +//google/cloud/run/...
120-
- +//google/cloud/talent/...
121-
- +//google/cloud/contentwarehouse/...
122-
- +//google/cloud/dataplex/...
123-
- +//google/cloud/kms/...
124-
- +//google/cloud/bigquery/...
125-
- +//google/cloud/resourcemanager/...
126-
- shard: Other
127-
targets:
128-
- //...
129-
# Skip top-level targets (e.g. //:bigtable).
130-
- -//:all
131-
# From Core
132-
- -//generator/...
133-
- -//docfx/...
134-
- -//google/cloud:all
135-
- -//examples/...
136-
# From Bigtable
137-
- -//google/cloud/bigtable/...
138-
# From Pub/Sub
139-
- -//google/cloud/pubsub/...
140-
- -//google/cloud/pubsublite/...
141-
# From Spanner
142-
- -//google/cloud/spanner/...
143-
# From Storage
144-
- -//google/cloud/storage/...
145-
# From Compute
146-
- -//google/cloud/compute/...
147-
# From AIPlatform
148-
- -//google/cloud/aiplatform/...
149-
# From Shard1
150-
- -//google/cloud/appengine/...
151-
- -//google/cloud/dataproc/...
152-
- -//google/cloud/monitoring/...
153-
- -//google/cloud/retail/...
154-
- -//google/cloud/discoveryengine/...
155-
- -//google/cloud/sql/...
156-
- -//google/cloud/dialogflow_cx/...
157-
- -//google/cloud/dialogflow_es/...
158-
# From Shard2
159-
- -//google/cloud/networkconnectivity/...
160-
- -//google/cloud/networkservices/...
161-
- -//google/cloud/policytroubleshooter/...
162-
- -//google/cloud/profiler/...
163-
- -//google/cloud/redis/...
164-
- -//google/cloud/securitycenter/...
165-
- -//google/cloud/servicedirectory/...
166-
- -//google/cloud/tpu/...
167-
- -//google/cloud/trace/...
168-
- -//google/cloud/vision/...
169-
- -//google/cloud/workflows/...
170-
- -//google/cloud/beyondcorp/...
171-
- -//google/cloud/billing/...
172-
- -//google/cloud/binaryauthorization/...
173-
- -//google/cloud/gkemulticloud/...
174-
- -//google/cloud/logging/...
175-
- -//google/cloud/notebooks/...
176-
- -//google/cloud/osconfig/...
177-
- -//google/cloud/servicecontrol/...
178-
- -//google/cloud/speech/...
179-
- -//google/cloud/support/...
180-
- -//google/cloud/video/...
181-
- -//google/cloud/datacatalog/...
182-
- -//google/cloud/iam/...
183-
- -//google/cloud/run/...
184-
- -//google/cloud/talent/...
185-
- -//google/cloud/contentwarehouse/...
186-
- -//google/cloud/dataplex/...
187-
- -//google/cloud/kms/...
188-
- -//google/cloud/bigquery/...
189-
- -//google/cloud/bigquerycontrol/...
190-
- -//google/cloud/resourcemanager/...
19139
steps:
19240
- uses: actions/checkout@v4
19341
with:

.github/workflows/macos-cmake.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
matrix:
4040
exclude-from-full-trick: [ true ]
4141
os: [ macos-14 ]
42-
shard: [ Core1, Core2, Compute, AIPlatform, Shard1, Shard2, Shard3, Shard4, Shard5, Other ]
42+
shard: [ Core2 ]
4343
exclude:
4444
# Only full builds include shards with generated code.
4545
- exclude-from-full-trick: ${{ ! inputs.full-matrix }}
@@ -89,6 +89,10 @@ jobs:
8989
storage
9090
storage_grpc
9191
)
92+
core3_features=(
93+
pubsub
94+
pubsublite
95+
)
9296
# These are the libraries with the most "clients". To build the list
9397
# run something like this and find the midpoint:
9498
#
@@ -214,6 +218,9 @@ jobs:
214218
elif [[ "${{ matrix.shard }}" == "Core2" ]]; then
215219
features="$(printf ",%s" "${core2_features[@]}")"
216220
echo "features=${features:1}" >> "${GITHUB_OUTPUT}"
221+
elif [[ "${{ matrix.shard }}" == "Core3" ]]; then
222+
features="$(printf ",%s" "${core3_features[@]}")"
223+
echo "features=${features:1}" >> "${GITHUB_OUTPUT}"
217224
elif [[ "${{matrix.shard}}" == "Compute" ]]; then
218225
echo "features=compute" >> "${GITHUB_OUTPUT}"
219226
elif [[ "${{matrix.shard}}" == "AIPlatform" ]]; then
@@ -236,6 +243,7 @@ jobs:
236243
else
237244
skipped_features=("${core1_features[@]}")
238245
skipped_features+=("${core2_features[@]}")
246+
skipped_features+=("${core3_features[@]}")
239247
skipped_features+=(compute)
240248
skipped_features+=(aiplatform)
241249
skipped_features+=("${shard1_features[@]}")

.github/workflows/windows-bazel.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,16 @@ jobs:
2929
# Continue other builds even if one fails
3030
fail-fast: false
3131
matrix:
32+
exclude-from-full-trick: [ true ]
3233
msvc: [ msvc-2022 ]
3334
# - dbg creates very large debugging files and GHA has limited storage.
3435
# - fastbuild also takes too much storage.
3536
compilation_mode: [ opt ]
36-
shard: [ Core, Compute, AIPlatform, Other ]
37+
shard: [ Core ]
3738
include:
3839
- shard: Core
3940
targets:
40-
- //google/cloud:all
41-
# - //generator/... # Does not build on Windows
42-
# - //docfx/... # Does not build on Windows
43-
- //google/cloud/bigtable/...
44-
- //google/cloud/pubsub/...
45-
- //google/cloud/pubsublite/...
46-
- //google/cloud/spanner/...
4741
- //google/cloud/storage/...
48-
- shard: Compute
49-
targets:
50-
- //google/cloud/compute/...
51-
- shard: AIPlatform
52-
targets:
53-
- //google/cloud/aiplatform/...
54-
- shard: Other
55-
targets:
56-
- //...
57-
# Skip top-level targets (e.g. //:bigtable).
58-
- -//:all
59-
# From Core
60-
- -//google/cloud:all
61-
- -//generator/...
62-
- -//docfx/...
63-
- -//google/cloud/bigtable/...
64-
- -//google/cloud/pubsub/...
65-
- -//google/cloud/pubsublite/...
66-
- -//google/cloud/spanner/...
67-
- -//google/cloud/storage/...
68-
# From Compute
69-
- -//google/cloud/compute/...
70-
# From AIPlatform
71-
- -//google/cloud/aiplatform/...
7242
steps:
7343
- uses: actions/checkout@v4
7444
with:

.github/workflows/windows-cmake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
matrix:
4040
exclude-from-full-trick: [ true ]
4141
msvc: [ msvc-2022 ]
42-
build_type: [ Debug, Release ]
43-
arch: [ x64, x86 ]
44-
shard: [Core1, Core2, Core3, Core4, Core5, Compute, AIPlatform, Shard1, Shard2, Shard3, Shard4, Other]
42+
build_type: [ Release ]
43+
arch: [ x64 ]
44+
shard: [ Core3, Core4 ]
4545
exclude:
4646
# Also skip shards (Compute and Other) that contain only generated code.
4747
- exclude-from-full-trick: ${{ ! inputs.full-matrix }}

0 commit comments

Comments
 (0)