Skip to content

Commit 8685c40

Browse files
committed
.github/workflow: Add explicit platform config to C++ build steps
Add --config=per-x86_64-linux flag to all C++ Bazel build, test, and run commands in GitHub workflows to ensure consistent platform selection. Changes: - check.yml: Add config to cpp-bazel job (build, coverage, benchmark) - component_integration_tests.yml: Add config to C++ test scenarios build This ensures the correct GCC toolchain and platform settings are used, aligning with the platform configurations defined in .bazelrc.
1 parent fc03db9 commit 8685c40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ jobs:
146146
bazelisk-cache: true
147147

148148
- name: Bazel Build
149-
run: bazel build //:kvs_cpp
149+
run: bazel build --config=per-x86_64-linux //:kvs_cpp
150150

151151
- name: Bazel Unit Test with Coverage
152152
run: |
153-
bazel coverage //:test_kvs_cpp \
153+
bazel coverage --config=per-x86_64-linux//:test_kvs_cpp \
154154
--collect_code_coverage \
155155
--combined_report=lcov \
156156
--experimental_generate_llvm_lcov \
@@ -184,4 +184,4 @@ jobs:
184184
rm ${OUT_FILE}
185185
186186
- name: Bazel Benchmark
187-
run: bazel run -c opt //:bm_kvs_cpp
187+
run: bazel run --config=per-x86_64-linux -c opt //:bm_kvs_cpp

.github/workflows/component_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Build C++ test scenarios with Bazel
4848
run: |
49-
bazel build //tests/cpp_test_scenarios:cpp_test_scenarios
49+
bazel build --config=per-x86_64-linux //tests/cpp_test_scenarios:cpp_test_scenarios
5050
5151
- name: Build Rust test scenarios with Bazel
5252
run: |

0 commit comments

Comments
 (0)