ZeroTierOne/ext/opentelemetry-cpp-1.21.0/ci/install_windows_bazelisk.ps1
2025-07-11 10:37:21 -07:00

11 lines
413 B
PowerShell

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
$ErrorActionPreference = "Stop"
trap { $host.SetShouldExit(1) }
$BAZELISK_VERSION="1.16.0"
$CWD=(Get-Item -Path ".\").FullName
(new-object System.Net.WebClient). `
DownloadFile("https://github.com/bazelbuild/bazelisk/releases/download/v$BAZELISK_VERSION/bazelisk-windows-amd64.exe",
"C:\windows\system32\bazel.exe")