Skip to content

Commit 556fbb5

Browse files
authored
ci(gcb): add libcxx build (#6253)
1 parent 9913905 commit 556fbb5

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

ci/cloudbuild/builds/libcxx.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2021 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eu
18+
19+
source "$(dirname "$0")/../../lib/init.sh"
20+
source module ci/cloudbuild/builds/lib/bazel.sh
21+
source module ci/cloudbuild/builds/lib/integration.sh
22+
23+
export CC=clang
24+
export CXX=clang++
25+
26+
mapfile -t args < <(bazel::common_args)
27+
args+=("--config=libcxx")
28+
bazel test "${args[@]}" --test_tag_filters=-integration-test ...
29+
30+
mapfile -t integration_args < <(integration::args)
31+
integration::bazel_with_emulators test "${args[@]}" "${integration_args[@]}"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
filename: ci/cloudbuild/cloudbuild.yaml
2+
github:
3+
name: google-cloud-cpp
4+
owner: googleapis
5+
push:
6+
branch: ^master$
7+
name: libcxx-ci
8+
substitutions:
9+
_BUILD_NAME: libcxx
10+
_DISTRO: fedora
11+
tags:
12+
- ci
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
filename: ci/cloudbuild/cloudbuild.yaml
2+
github:
3+
name: google-cloud-cpp
4+
owner: googleapis
5+
pullRequest:
6+
branch: ^master$
7+
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
8+
name: libcxx-pr
9+
substitutions:
10+
_BUILD_NAME: libcxx
11+
_DISTRO: fedora
12+
tags:
13+
- pr

0 commit comments

Comments
 (0)