You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve S3 cache
* Do not use all the available CPUs by default
* Improve builds
* Improve tar operations
* Cleanup
* Improve handling of compression flag
* Cleanup
// Never use all CPUs, leave one free for other processes
170
+
cpus:=runtime.NumCPU()
171
+
ifcpus>2 {
172
+
cpus--
173
+
}
174
+
169
175
cmd.Flags().StringP("cache", "c", cacheDefault, "Configures the caching behaviour: none=no caching, local=local caching only, remote-pull=download from remote but never upload, remote-push=push to remote cache only but don't download, remote=use all configured caches")
170
176
cmd.Flags().Bool("dry-run", false, "Don't actually build but stop after showing what would need to be built")
171
177
cmd.Flags().String("dump-plan", "", "Writes the build plan as JSON to a file. Use \"-\" to write the build plan to stderr.")
172
178
cmd.Flags().Bool("werft", false, "Produce werft CI compatible output")
173
179
cmd.Flags().Bool("dont-test", false, "Disable all package-level tests (defaults to false)")
174
180
cmd.Flags().Bool("dont-compress", false, "Disable compression of build artifacts (defaults to false)")
175
181
cmd.Flags().Bool("jailed-execution", false, "Run all build commands using runc (defaults to false)")
176
-
cmd.Flags().UintP("max-concurrent-tasks", "j", uint(runtime.NumCPU()), "Limit the number of max concurrent build tasks - set to 0 to disable the limit")
182
+
cmd.Flags().UintP("max-concurrent-tasks", "j", uint(cpus), "Limit the number of max concurrent build tasks - set to 0 to disable the limit")
177
183
cmd.Flags().String("coverage-output-path", "", "Output path where test coverage file will be copied after running tests")
178
184
cmd.Flags().StringToString("docker-build-options", nil, "Options passed to all 'docker build' commands")
179
185
cmd.Flags().String("report", "", "Generate a HTML report after the build has finished. (e.g. --report myreport.html)")
0 commit comments