feat(conf.toml): putting two stages together

This commit is contained in:
张佳澈520370910044 2024-05-07 16:22:11 +08:00
parent 54de5d5229
commit 08d77b0910

View File

@ -1,36 +1,10 @@
skipGitea = true skipGitea = true
[[stages]] [[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" name = "clang-tidy"
[stages.executor] [stages.executor]
name = "sandbox" name = "sandbox"
[stages.executor.with.default] [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"] env = ["PATH=/usr/bin:/bin:/usr/local/bin"]
cpuLimit = 10_000_000_000 cpuLimit = 10_000_000_000
memoryLimit = 419_430_400 memoryLimit = 419_430_400
@ -45,8 +19,6 @@ max = 65_536
[stages.executor.with.default.stderr] [stages.executor.with.default.stderr]
name = "stderr" name = "stderr"
max = 65_536 max = 65_536
[stages.executor.with.default.copyInCached]
"build/compile_commands.json" = "build/compile_commands.json"
[stages.parser] [stages.parser]
name = "clang-tidy" name = "clang-tidy"
[stages.parser.with] [stages.parser.with]