mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-27 00:04:22 +00:00
18 lines
359 B
TypeScript
18 lines
359 B
TypeScript
import * as core from "@actions/core";
|
|
import { buildProject, configureProject } from "./cmake.js";
|
|
import { getInputs } from "./inputs.js";
|
|
|
|
try {
|
|
const inputs = getInputs();
|
|
|
|
configureProject(inputs);
|
|
|
|
core.setOutput("build-dir", inputs.buildDir);
|
|
|
|
if (inputs.runBuild) {
|
|
await buildProject(inputs);
|
|
}
|
|
} catch (err) {
|
|
core.setFailed(err);
|
|
}
|