Skip to content

Commit 3b9b020

Browse files
[bazel] Fix CI on MacOS (#583) (#588)
- Adds platform specific build flag --macos_minimum_os=10.15 to target recent Apple C++ SDK versions only, which support the std::filesystem API. I added the flag to .bazelrc and removed the unused .github/workflows/ci.bazelrc file. - Also enabled test_output=errors in bazel CI to provide better error messages for failed test cases. (cherry picked from commit 952beb9) Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai> Co-authored-by: Shameek Ganguly <shameek@intrinsic.ai>
1 parent a25a374 commit 3b9b020

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ build --features=per_object_debug_info
1313

1414
# Enable header processing, required for layering checks with parse_header.
1515
build --process_headers_in_dependencies
16+
17+
# OS specific settings
18+
build --enable_platform_specific_config
19+
build:macos --macos_minimum_os=10.15

.github/workflows/bazel.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ jobs:
2323
{"folder": ".", "bzlmodEnabled": false},
2424
]
2525
exclude_windows: true
26+
bazel_test_command: "bazel test --test_output=errors //..."

.github/workflows/ci.bazelrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)