mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 10:41:22 +00:00
feat: add CMake build step
This commit is contained in:
parent
48cb08d783
commit
13fd9f9841
1
main/index.mjs
generated
1
main/index.mjs
generated
@ -27245,6 +27245,7 @@ async function main() {
|
||||
const buildDir = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("build-dir");
|
||||
await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec("cmake", [sourceDir || ".", "-B", buildDir || "build"]);
|
||||
_actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("build-dir", buildDir || "build");
|
||||
await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec("cmake", ["--build", buildDir || "build"]);
|
||||
}
|
||||
main();
|
||||
//# sourceMappingURL=main.mjs.map
|
||||
|
@ -6,6 +6,8 @@ async function main() {
|
||||
const buildDir = core.getInput("build-dir");
|
||||
await exec.exec("cmake", [sourceDir || ".", "-B", buildDir || "build"]);
|
||||
core.setOutput("build-dir", buildDir || "build");
|
||||
|
||||
await exec.exec("cmake", ["--build", buildDir || "build"]);
|
||||
}
|
||||
|
||||
main();
|
||||
|
Loading…
Reference in New Issue
Block a user