diff --git a/.github/ci-test-each-commit-exec.py b/.github/ci-test-each-commit-exec.py index 959a1579aea..b81241bc20a 100755 --- a/.github/ci-test-each-commit-exec.py +++ b/.github/ci-test-each-commit-exec.py @@ -21,11 +21,12 @@ def main(): run(["git", "log", "-1"]) num_procs = int(run(["nproc"], stdout=subprocess.PIPE).stdout) + build_dir = "ci_build" run([ "cmake", "-B", - "build", + build_dir, "-Werror=dev", # Use clang++, because it is a bit faster and uses less memory than g++ "-DCMAKE_C_COMPILER=clang", @@ -37,28 +38,23 @@ def main(): "-DAPPEND_CFLAGS='-O3 -g2'", "-DCMAKE_BUILD_TYPE=Debug", "-DWERROR=ON", - "-DWITH_ZMQ=ON", - "-DBUILD_GUI=ON", - "-DBUILD_BENCH=ON", - "-DBUILD_FUZZ_BINARY=ON", - "-DWITH_USDT=ON", - "-DBUILD_KERNEL_LIB=ON", - "-DBUILD_KERNEL_TEST=ON", + "--preset=dev-mode", + # Tolerate unused member functions in intermediate commits in a pull request "-DCMAKE_CXX_FLAGS=-Wno-error=unused-member-function", ]) - run(["cmake", "--build", "build", "-j", str(num_procs)]) + run(["cmake", "--build", build_dir, "-j", str(num_procs)]) run([ "ctest", "--output-on-failure", "--stop-on-failure", "--test-dir", - "build", + build_dir, "-j", str(num_procs), ]) run([ sys.executable, - "./build/test/functional/test_runner.py", + f"./{build_dir}/test/functional/test_runner.py", "-j", str(num_procs * 2), "--combinedlogslen=99999999",