Skip to content

Commit

Permalink
bazel: fix .bazelrc location in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik committed Jul 24, 2023
1 parent e77dd76 commit e162627
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
@@ -1,3 +1,3 @@
build --cxxopt=-std=c++14
build --host_cxxopt=-std=c++14
build --test_output errors
build --test_output=errors
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -70,14 +70,11 @@ jobs:
key: v1-bazel-cache-${{ hashFiles('repositories.bzl') }}
restore-keys: v1-bazel-cache-
- name: Configure bazel
run: |
cat > .bazelrc << EOF
startup --output_base /home/vscode/.cache/_grpc_gateway_bazel
build --test_output errors
run:
| # put .bazelrc in $HOME so that it's read before project's .bazelrc
cat > /home/vscode/.bazelrc << EOF
startup --output_base=/home/vscode/.cache/_grpc_gateway_bazel
build --@io_bazel_rules_go//go/config:race
# Protobuf v3.22.0+ requires C++14
build --cxxopt=-std=c++14
build --host_cxxopt=-std=c++14
# Workaround https://github.com/bazelbuild/bazel/issues/3645
# See https://docs.bazel.build/versions/0.23.0/command-line-reference.html
build --local_ram_resources=7168 # Github runners have 7G of memory
Expand Down

0 comments on commit e162627

Please sign in to comment.