Skip to content

Commit 78aa6e4

Browse files
committed
bazel: add .bazelrc
1 parent 46a4051 commit 78aa6e4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build --cxxopt=-std=c++14
2+
build --host_cxxopt=-std=c++14
3+
build --test_output=errors

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ jobs:
7070
key: v1-bazel-cache-${{ hashFiles('repositories.bzl') }}
7171
restore-keys: v1-bazel-cache-
7272
- name: Configure bazel
73-
run: |
74-
cat > .bazelrc << EOF
75-
startup --output_base /home/vscode/.cache/_grpc_gateway_bazel
76-
build --test_output errors
77-
build --features race
78-
# Protobuf v3.22.0+ requires C++14
79-
build --repo_env=BAZEL_CXXOPTS=-std=c++14
73+
run:
74+
| # put .bazelrc in $HOME so that it's read before project's .bazelrc
75+
cat > /home/vscode/.bazelrc << EOF
76+
startup --output_base=/home/vscode/.cache/_grpc_gateway_bazel
77+
build --@io_bazel_rules_go//go/config:race
8078
# Workaround https://github.com/bazelbuild/bazel/issues/3645
8179
# See https://docs.bazel.build/versions/0.23.0/command-line-reference.html
8280
build --local_ram_resources=7168 # Github runners have 7G of memory

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ bazel-genfiles
77
bazel-grpc-gateway
88
bazel-out
99
bazel-testlogs
10-
/.bazelrc
1110

1211
# Go vendor directory
1312
vendor

0 commit comments

Comments
 (0)