feat: add CMake build step

This commit is contained in:
Alfi Maulana 2023-11-20 20:31:12 +07:00
parent 48cb08d783
commit 13fd9f9841
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
2 changed files with 3 additions and 0 deletions

1
main/index.mjs generated
View File

@ -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

View File

@ -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();