File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ ###############################################################################
2
+ ## Bazel Configuration Flags
3
+ ##
4
+ ## `.bazelrc` is a Bazel configuration file.
5
+ ## https://bazel.build/docs/best-practices#bazelrc-file
6
+ ###############################################################################
7
+
1
8
build --enable_platform_specific_config
2
9
build:linux --@rules_rust//:extra_rustc_flags=-Clink-arg=-fuse-ld=lld
3
10
build:linux --cxxopt=-std=c++17
4
11
build:macos --cxxopt=-std=c++17
12
+
13
+ ###############################################################################
14
+ ## Custom user flags
15
+ ##
16
+ ## This should always be the last thing in the `.bazelrc` file to ensure
17
+ ## consistent behavior when setting flags in that file as `.bazelrc` files are
18
+ ## evaluated top to bottom.
19
+ ###############################################################################
20
+
21
+ try-import %workspace%/user.bazelrc
Original file line number Diff line number Diff line change @@ -120,11 +120,13 @@ jobs:
120
120
- name : Install lld
121
121
run : sudo apt-get install lld
122
122
if : matrix.os == 'ubuntu'
123
+ - name : Setup Bazelrc (Windows)
124
+ run : |
125
+ echo "startup --output_user_root=D:/bzl" > ./user.bazelrc
126
+ if : startswith(runner.os, 'Windows')
123
127
- run : bazel --version
124
128
- run : bazel run demo --verbose_failures --noshow_progress ${{matrix.os == 'macos' && '--xcode_version_config=tools/bazel:github_actions_xcodes' || ''}}
125
- continue-on-error : ${{matrix.os == 'windows'}} # https://github.com/bazelbuild/bazel/issues/18592
126
129
- run : bazel test ... --verbose_failures --noshow_progress ${{matrix.os == 'macos' && '--xcode_version_config=tools/bazel:github_actions_xcodes' || ''}}
127
- continue-on-error : ${{matrix.os == 'windows'}} # https://github.com/bazelbuild/bazel/issues/18592
128
130
- name : Check MODULE.bazel.lock up to date
129
131
run : git diff --exit-code
130
132
if : matrix.os == 'ubuntu' || matrix.os == 'macos'
Original file line number Diff line number Diff line change 3
3
/bazel-cxx
4
4
/bazel-out
5
5
/bazel-testlogs
6
+ /user.bazelrc
6
7
/buck-out
7
8
/expand.cc
8
9
/expand.rs
Original file line number Diff line number Diff line change 1
1
module (
2
2
name = "cxx.rs" ,
3
- version = "1 .0.145 " ,
3
+ version = "0 .0.0 " ,
4
4
bazel_compatibility = [">=7.2.1" ],
5
5
compatibility_level = 1 ,
6
6
)
You can’t perform that action at this time.
0 commit comments