From 08d77b0910f74b1a2f20cfdff6894e5740fbde48 Mon Sep 17 00:00:00 2001 From: zjc_he Date: Tue, 7 May 2024 16:22:11 +0800 Subject: [PATCH] feat(conf.toml): putting two stages together --- conf.toml | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/conf.toml b/conf.toml index c68371c..ccce263 100644 --- a/conf.toml +++ b/conf.toml @@ -1,36 +1,10 @@ skipGitea = true [[stages]] -name = "prepare" -[stages.executor] -name = "sandbox" -[stages.executor.with.default] -args = ["cmake", "-S", ".", "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", "-B", "build"] -env = ["PATH=/usr/bin:/bin"] -cpuLimit = 10_000_000_000 -memoryLimit = 104_857_600 -procLimit = 50 -copyInCwd = true -copyOut = ["stdout"] -copyOutCached = ["build/compile_commands.json"] -[stages.executor.with.default.stdin] -content = "" -[stages.executor.with.default.stdout] -name = "stdout" -max = 65_536 -[stages.executor.with.default.stderr] -name = "stderr" -max = 65_536 -[stages.parser] -name = "dummy" -[stages.parser.with] -score = 0 -comment = "" -[[stages]] name = "clang-tidy" [stages.executor] name = "sandbox" [stages.executor.with.default] -args = ["bash", "-c", "clang-tidy --header-filter=.* --quiet -checks=* src/*.cpp -p build"] +args = ["bash", "-c", "cmake -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build && clang-tidy --header-filter=.* --quiet -checks=* src/*.cpp -p build"] env = ["PATH=/usr/bin:/bin:/usr/local/bin"] cpuLimit = 10_000_000_000 memoryLimit = 419_430_400 @@ -45,8 +19,6 @@ max = 65_536 [stages.executor.with.default.stderr] name = "stderr" max = 65_536 -[stages.executor.with.default.copyInCached] -"build/compile_commands.json" = "build/compile_commands.json" [stages.parser] name = "clang-tidy" [stages.parser.with]