Skip to content

Commit dabb2db

Browse files
committed
chore: report setup-cpp errors
1 parent ff997f2 commit dabb2db

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/python/python.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { setupAptPack } from "../utils/setup/setupAptPack"
44
import { setupBrewPack } from "../utils/setup/setupBrewPack"
55
import { setupChocoPack } from "../utils/setup/setupChocoPack"
66
import { isGitHubCI } from "../utils/env/isci"
7+
import { warning } from "@actions/core"
78

89
export function setupPython(version: string, setupDir: string, arch: string) {
910
if (!isGitHubCI()) {
@@ -15,6 +16,7 @@ export function setupPython(version: string, setupDir: string, arch: string) {
1516
const { setupActionsPython } = require("./actions_python") as typeof import("./actions_python")
1617
return setupActionsPython(version, setupDir, arch)
1718
} catch (err) {
19+
warning(err as Error)
1820
return setupPythonViaSystem(version, setupDir, arch)
1921
}
2022
}

0 commit comments

Comments
 (0)