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