Skip to content

Commit 71a7778

Browse files
committed
fixup! feat(bench): add Darwin-specific fib variant for macOS flamegraph coverage
1 parent 8e42d4b commit 71a7778

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,6 @@ jobs:
255255
# This is because bazel does not like the user switch between running `bazel build` as a user then running `bazel run` as sudo and refuses to run.
256256
# For now, `$USER` remains the original user, but the program is ran with uid 0 with `sudo --preserve-env`
257257
# This problem is temporary because the runner does not YET do the same uid/gid spoofing on macos as it does on linux.
258-
run: ./bazel-bin/examples/google_benchmark_bazel/my_benchmark --benchmark_filter=BM_FibonacciRecursive_Darwin
258+
# BUILD_WORKSPACE_DIRECTORY is normally set by `bazel run`; we set it manually so workspace-relative __FILE__ resolution works when invoking the binary directly.
259+
run: BUILD_WORKSPACE_DIRECTORY=$PWD ./bazel-bin/examples/google_benchmark_bazel/my_benchmark --benchmark_filter=BM_FibonacciRecursive_Darwin
259260
mode: walltime

0 commit comments

Comments
 (0)