Skip to content

Commit ad49f54

Browse files
committed
fix: fix extraction deps on alpine
1 parent f23c0b8 commit ad49f54

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

dist/legacy/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/legacy/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/modern/setup-cpp.mjs

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

dist/modern/setup-cpp.mjs.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/utils/setup/extract.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { info, warning } from "ci-log"
44
import { execa } from "execa"
55
import { mkdirp, move } from "fs-extra"
66
import { rm } from "fs/promises"
7+
import { hasApk, installApkPack } from "setup-alpine"
78
import { installAptPack } from "setup-apt"
89
import which from "which"
910
import { setupSevenZip } from "../../sevenzip/sevenzip.js"
@@ -172,6 +173,8 @@ async function installTarDependencies(archiveType: ArchiveType) {
172173
await setupDnfPack([{ name: "gzip" }, { name: "tar" }])
173174
} else if (isUbuntu()) {
174175
await installAptPack([{ name: "gzip" }, { name: "tar" }])
176+
} else if (await hasApk()) {
177+
await installApkPack([{ name: "gzip" }, { name: "tar" }])
175178
}
176179
}
177180
break
@@ -185,6 +188,8 @@ async function installTarDependencies(archiveType: ArchiveType) {
185188
await setupDnfPack([{ name: "xz" }, { name: "tar" }])
186189
} else if (isUbuntu()) {
187190
await installAptPack([{ name: "xz-utils" }, { name: "tar" }])
191+
} else if (await hasApk()) {
192+
await installApkPack([{ name: "xz" }, { name: "tar" }])
188193
}
189194
}
190195
break

0 commit comments

Comments
 (0)