mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-10 03:01:21 +00:00
Bumps [gha-utils](https://github.com/threeal/gha-utils) from 0.2.0 to 0.3.0. - [Release notes](https://github.com/threeal/gha-utils/releases) - [Commits](https://github.com/threeal/gha-utils/compare/v0.2.0...v0.3.0) --- updated-dependencies: - dependency-name: gha-utils dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alfi Maulana <alfi.maulana.f@gmail.com>
19 lines
390 B
TypeScript
19 lines
390 B
TypeScript
import { logError, setOutput } from "gha-utils";
|
|
import { buildProject, configureProject } from "./cmake.js";
|
|
import { getContext } from "./context.js";
|
|
|
|
try {
|
|
const context = getContext();
|
|
|
|
configureProject(context);
|
|
|
|
await setOutput("build-dir", context.buildDir);
|
|
|
|
if (context.build.enabled) {
|
|
buildProject(context);
|
|
}
|
|
} catch (err) {
|
|
logError(err);
|
|
process.exit(1);
|
|
}
|