mirror of https://github.com/aminya/setup-cpp.git
fix: fix vcpkg deps on alpine
This commit is contained in:
parent
e6bd753a7f
commit
d04bcbf1dc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -5,6 +5,7 @@ import { addEnv, addPath } from "envosman"
|
|||
import { execa } from "execa"
|
||||
import { pathExists } from "path-exists"
|
||||
import { addShExt, addShRelativePrefix } from "patha"
|
||||
import { hasApk, installApkPackage } from "setup-alpine"
|
||||
import { installAptPack } from "setup-apt"
|
||||
import which from "which"
|
||||
import { rcOptions } from "../cli-options.js"
|
||||
|
|
@ -54,6 +55,14 @@ export async function setupVcpkg(version: string, setupDir: string, arch: string
|
|||
{ name: "tar" },
|
||||
{ name: "pkg-config" },
|
||||
])
|
||||
} else if (await hasApk()) {
|
||||
await installApkPackage([
|
||||
{ name: "curl" },
|
||||
{ name: "zip" },
|
||||
{ name: "unzip" },
|
||||
{ name: "tar" },
|
||||
{ name: "pkg-config" },
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue