mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 10:41:22 +00:00
fix: split lines from getMultilineInput
with a whitespace
This commit is contained in:
parent
22f052e23e
commit
c8c5d6ca1a
3
main/index.mjs
generated
3
main/index.mjs
generated
@ -27247,7 +27247,8 @@ async function main() {
|
||||
_actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("build-dir", buildDir || "build");
|
||||
const runBuild = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput("run-build");
|
||||
if (runBuild) {
|
||||
const buildArgs = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput("build-args");
|
||||
const buildArgs = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput("build-args")
|
||||
.flatMap((args) => args.split(" "));
|
||||
await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec("cmake", ["--build", buildDir || "build", ...buildArgs]);
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,9 @@ async function main() {
|
||||
|
||||
const runBuild = core.getBooleanInput("run-build");
|
||||
if (runBuild) {
|
||||
const buildArgs = core.getMultilineInput("build-args");
|
||||
const buildArgs = core
|
||||
.getMultilineInput("build-args")
|
||||
.flatMap((args) => args.split(" "));
|
||||
await exec.exec("cmake", ["--build", buildDir || "build", ...buildArgs]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user