docs: comments on copy-in-cwd & limit

This commit is contained in:
张泊明518370910136 2025-06-30 19:58:43 -04:00
parent 1b285027d2
commit bc121dbe45
GPG Key ID: D47306D7062CDA9D

View File

@ -47,8 +47,10 @@ files.import-map = { "tools/Makefile" = "h7/Makefile" }
# stages automatically # stages automatically
files.export = [ "yes.txt" ] files.export = [ "yes.txt" ]
# whether to copy all files from the current working directory from host (i.e. the whole repo) # whether to copy all files from the current working directory from host (i.e. the whole repo)
# you can set it as false if you are in the run stage of a compiled language, as the binary is all you need
copy-in-cwd = true # default: true copy-in-cwd = true # default: true
# normally, you DO NOT need to change these default limits
limit.cpu = "1s" # CPU time limit, default: "1s" limit.cpu = "1s" # CPU time limit, default: "1s"
limit.mem = "256m" # memory limit, default: "256m" limit.mem = "256m" # memory limit, default: "256m"
limit.time = "2s" # wall-clock time limit, if not set, will be 2x CPU time limit.time = "2s" # wall-clock time limit, if not set, will be 2x CPU time