Skip to content

Commit 307ad6c

Browse files
committed
Conditional run in nob with sanitizers.
1 parent db7520a commit 307ad6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nob.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ void build_and_run_gtest_file(std::string_view filename)
8080
{
8181
Cstr path = PATH(filename.data());
8282
CMD("g++", CPPFLAGS, "-o", NOEXT(path), path, "-lgtest");
83+
#ifndef BUILD_ONLY // github.com/iglesias/coding-challenges/actions/runs/12532941559/job/34952138092#step:4:943
8384
CMD(NOEXT(path));
85+
#endif
8486
}
8587

8688
Pid build_gtest_file_async(std::string_view path)
@@ -113,6 +115,7 @@ void work_out_leetcode()
113115

114116
for (const Pid& pid : pids) pid_wait(pid);
115117

118+
#ifndef BUILD_ONLY // github.com/iglesias/coding-challenges/actions/runs/12532941559/job/34952138092#step:4:943
116119
pids.clear();
117120

118121
for (const auto& entry : fs::directory_iterator("leetcode")) if (fs::is_regular_file(entry.path())) {
@@ -121,6 +124,7 @@ void work_out_leetcode()
121124
if (filename.ends_with(".cpp")) pids.push_back(run_gtest_file_async("leetcode/" + filename)); }
122125

123126
for (const Pid& pid : pids) pid_wait(pid);
127+
#endif
124128
}
125129

126130
void build_codeforces_cpp_files() {

0 commit comments

Comments
 (0)