chore: report setup-cpp errors

This commit is contained in:
Amin Yahyaabadi 2022-02-04 16:29:52 -08:00
parent ff997f2c40
commit dabb2db00e
3 changed files with 4 additions and 2 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@ import { setupAptPack } from "../utils/setup/setupAptPack"
import { setupBrewPack } from "../utils/setup/setupBrewPack"
import { setupChocoPack } from "../utils/setup/setupChocoPack"
import { isGitHubCI } from "../utils/env/isci"
import { warning } from "@actions/core"
export function setupPython(version: string, setupDir: string, arch: string) {
if (!isGitHubCI()) {
@ -15,6 +16,7 @@ export function setupPython(version: string, setupDir: string, arch: string) {
const { setupActionsPython } = require("./actions_python") as typeof import("./actions_python")
return setupActionsPython(version, setupDir, arch)
} catch (err) {
warning(err as Error)
return setupPythonViaSystem(version, setupDir, arch)
}
}