mirror of https://github.com/aminya/setup-cpp
chore: report setup-cpp errors
This commit is contained in:
parent
ff997f2c40
commit
dabb2db00e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue