mirror of https://github.com/aminya/setup-cpp
fix: install bazelisk on windows/macos instead of bazel
This commit is contained in:
parent
9da09a7595
commit
41af5a7f7c
|
@ -13,6 +13,7 @@ words:
|
||||||
- aminya
|
- aminya
|
||||||
- applellvm
|
- applellvm
|
||||||
- bazel
|
- bazel
|
||||||
|
- bazelisk
|
||||||
- copr
|
- copr
|
||||||
- vbatts
|
- vbatts
|
||||||
- buildtools
|
- buildtools
|
||||||
|
|
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
|
@ -11,10 +11,12 @@ import { execSudo } from "../utils/exec/sudo"
|
||||||
export async function setupBazel(version: string, _setupDir: string, _arch: string) {
|
export async function setupBazel(version: string, _setupDir: string, _arch: string) {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "win32": {
|
case "win32": {
|
||||||
return setupChocoPack("bazel", version)
|
// install bazelisk because it contains both
|
||||||
|
return setupChocoPack("bazelisk", version)
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
return setupBrewPack("bazel", version)
|
// install bazelisk because it contains both
|
||||||
|
return setupBrewPack("bazelisk", version)
|
||||||
}
|
}
|
||||||
case "linux": {
|
case "linux": {
|
||||||
if (isArch()) {
|
if (isArch()) {
|
||||||
|
|
Loading…
Reference in New Issue