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
|
||||
- applellvm
|
||||
- bazel
|
||||
- bazelisk
|
||||
- copr
|
||||
- vbatts
|
||||
- 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) {
|
||||
switch (process.platform) {
|
||||
case "win32": {
|
||||
return setupChocoPack("bazel", version)
|
||||
// install bazelisk because it contains both
|
||||
return setupChocoPack("bazelisk", version)
|
||||
}
|
||||
case "darwin": {
|
||||
return setupBrewPack("bazel", version)
|
||||
// install bazelisk because it contains both
|
||||
return setupBrewPack("bazelisk", version)
|
||||
}
|
||||
case "linux": {
|
||||
if (isArch()) {
|
||||
|
|
Loading…
Reference in New Issue