Skip to content

Commit 76d0a56

Browse files
authored
ci: update quickstart-bazel build (#15986)
1 parent f33848b commit 76d0a56

182 files changed

Lines changed: 1443 additions & 523 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci/cloudbuild/builds/quickstart-bazel.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export CXX=g++
2626

2727
mapfile -t args < <(bazel::common_args)
2828
for lib in $(quickstart::libraries); do
29-
io::log_h2 "Running Bazel quickstart for ${lib}"
30-
io::run env -C "${PROJECT_ROOT}/google/cloud/${lib}/quickstart" \
31-
bazel build "${args[@]}" :quickstart
29+
io::log_h2 "Building Bazel quickstart for ${lib} using WORKSPACE"
30+
USE_BAZEL_VERSION=7.6.1 io::run env -C "${PROJECT_ROOT}/google/cloud/${lib}/quickstart" \
31+
bazel build --enable_workspace --noenable_bzlmod "${args[@]}" :quickstart
32+
33+
io::log_h2 "Building Bazel quickstart for ${lib} using MODULE"
34+
USE_BAZEL_VERSION=8.5.1 io::run env -C "${PROJECT_ROOT}/google/cloud/${lib}/quickstart" \
35+
bazel build --noenable_workspace --enable_bzlmod "${args[@]}" :quickstart
3236
done

google/cloud/accessapproval/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/accesscontextmanager/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/advisorynotifications/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/aiplatform/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/alloydb/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/apigateway/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/apigeeconnect/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/apikeys/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

google/cloud/apiregistry/quickstart/WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2323
# NOTE: Update this version and SHA256 as needed.
2424
http_archive(
2525
name = "google_cloud_cpp",
26-
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
27-
strip_prefix = "google-cloud-cpp-2.42.0",
28-
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
26+
sha256 = "e868bdb537121d2169fbc1ef69b81f4b4f96e97891c4567a6533d4adf62bffde",
27+
strip_prefix = "google-cloud-cpp-3.1.0",
28+
url = "https://github.com/googleapis/google-cloud-cpp/archive/v3.1.0.tar.gz",
2929
)
3030

3131
load("@google_cloud_cpp//bazel:workspace0.bzl", "gl_cpp_workspace0")

0 commit comments

Comments
 (0)