mirror of https://github.com/aminya/setup-cpp.git
fix: fix ninja version on Alpine
This commit is contained in:
parent
8eb691a796
commit
6ecab5ef9d
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
|
|
@ -1,6 +1,6 @@
|
|||
import { addPath } from "envosman"
|
||||
import { addExeExt } from "patha"
|
||||
import { hasApk, installApkPack } from "setup-alpine"
|
||||
import { enableCommunityRepository, hasApk, installApkPack } from "setup-alpine"
|
||||
import { rcOptions } from "../cli-options.js"
|
||||
import { arm64, x86, x86_64 } from "../utils/env/arch.js"
|
||||
import { type InstallationInfo, type PackageInfo, setupBin } from "../utils/setup/setupBin.js"
|
||||
|
|
@ -42,11 +42,15 @@ function getNinjaPackageInfo(version: string, platform: NodeJS.Platform, arch: s
|
|||
|
||||
export async function setupNinja(version: string, setupDir: string, arch: string): Promise<InstallationInfo> {
|
||||
if (await hasApk()) {
|
||||
await enableCommunityRepository()
|
||||
await installApkPack([
|
||||
{
|
||||
name: "ninja",
|
||||
name: "ninja-build",
|
||||
// version,
|
||||
},
|
||||
{
|
||||
name: "ninja-is-really-ninja",
|
||||
},
|
||||
])
|
||||
await addPath("/usr/lib/ninja-build/bin", rcOptions)
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue