Skip to content

Commit

Permalink
chore: report setup-cpp errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 5, 2022
1 parent ff997f2 commit dabb2db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup_cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/setup_cpp.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/python/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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)
}
}
Expand Down

0 comments on commit dabb2db

Please sign in to comment.