mirror of https://github.com/aminya/setup-cpp
fix: add the entry file
This commit is contained in:
parent
f63cc85aba
commit
3b557ec4c5
23
src/main.ts
23
src/main.ts
|
@ -0,0 +1,23 @@
|
||||||
|
import * as core from "@actions/core"
|
||||||
|
|
||||||
|
export async function main(): Promise<number> {
|
||||||
|
try {
|
||||||
|
// TODO
|
||||||
|
} catch (err) {
|
||||||
|
core.error(err as string | Error)
|
||||||
|
core.setFailed("install-cpp failed")
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
core.info("install-cpp succeeded")
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
||||||
|
.then((ret) => {
|
||||||
|
process.exitCode = ret
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
core.error("main() failed!", error)
|
||||||
|
process.exitCode = 1
|
||||||
|
})
|
Loading…
Reference in New Issue