diff --git a/main/index.mjs b/main/index.mjs index e403fdc..631c236 100644 --- a/main/index.mjs +++ b/main/index.mjs @@ -27263,6 +27263,9 @@ async function main() { .flatMap((opts) => opts.split(" ")) .map((opt) => "-D" + opt); configureArgs.push(...options); + const args = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput("args") + .flatMap((args) => args.split(" ")); + configureArgs.push(...args); await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec("cmake", configureArgs); _actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("build-dir", buildDir || "build"); const runBuild = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput("run-build"); diff --git a/src/main.mts b/src/main.mts index bac7479..7a9b3c5 100644 --- a/src/main.mts +++ b/src/main.mts @@ -28,6 +28,11 @@ async function main() { .map((opt) => "-D" + opt); configureArgs.push(...options); + const args = core + .getMultilineInput("args") + .flatMap((args) => args.split(" ")); + configureArgs.push(...args); + await exec.exec("cmake", configureArgs); core.setOutput("build-dir", buildDir || "build");