cmake-action/src/action.ts
dependabot[bot] d62c3d86bd
chore: bump gha-utils from 0.2.0 to 0.3.0 (#446)
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>
2024-09-19 23:59:36 +08:00

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);
}