Skip to content

Commit e8d2cb0

Browse files
committed
feat: support installing system packages using dnf package manager
1 parent 50a814c commit e8d2cb0

18 files changed

+66
-19
lines changed

dist/actions_python.239cf807.js renamed to dist/actions_python.3d426834.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions_python.239cf807.js.map renamed to dist/actions_python.3d426834.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.

dist/actions_python.aa574a9a.js renamed to dist/actions_python.a137bcdc.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions_python.aa574a9a.js.map renamed to dist/actions_python.a137bcdc.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.

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.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ccache/ccache.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { setupPacmanPack } from "../utils/setup/setupPacmanPack"
33
import { setupBrewPack } from "../utils/setup/setupBrewPack"
44
import { setupChocoPack } from "../utils/setup/setupChocoPack"
55
import { isArch } from "../utils/env/isArch"
6+
import { hasDnf } from "../utils/env/hasDnf"
7+
import { setupDnfPack } from "../utils/setup/setupDnfPack"
68

79
// eslint-disable-next-line @typescript-eslint/no-unused-vars
810
export function setupCcache(version: string, _setupDir: string, _arch: string) {
@@ -16,6 +18,8 @@ export function setupCcache(version: string, _setupDir: string, _arch: string) {
1618
case "linux": {
1719
if (isArch()) {
1820
return setupPacmanPack("ccache", version)
21+
} else if (hasDnf()) {
22+
return setupDnfPack("ccache", version)
1923
}
2024
return setupAptPack("ccache", version)
2125
}

src/cppcheck/cppcheck.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { setupPacmanPack } from "../utils/setup/setupPacmanPack"
44
import { setupBrewPack } from "../utils/setup/setupBrewPack"
55
import { setupChocoPack } from "../utils/setup/setupChocoPack"
66
import { isArch } from "../utils/env/isArch"
7+
import { hasDnf } from "../utils/env/hasDnf"
8+
import { setupDnfPack } from "../utils/setup/setupDnfPack"
79

810
// eslint-disable-next-line @typescript-eslint/no-unused-vars
911
export async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {
@@ -19,6 +21,8 @@ export async function setupCppcheck(version: string | undefined, _setupDir: stri
1921
case "linux": {
2022
if (isArch()) {
2123
return setupPacmanPack("cppcheck", version)
24+
} else if (hasDnf()) {
25+
return setupDnfPack("ccache", version)
2226
}
2327
return setupAptPack("cppcheck", version)
2428
}

0 commit comments

Comments
 (0)