@ -2,10 +2,12 @@
# SPDX-License-Identifier: BUSL-1.1
# Unzip Boundary CLI to the same directory
Write-Host " Unzipping Boundary CLI... "
$destination = Split-Path -Path $ { boundary_cli_zip_path }
Expand-Archive -Path $ { boundary_cli_zip_path } -DestinationPath $destination -Force
# Unzip boundary src to new directory
Write-Host " Unzipping Boundary source code... "
$base = [ System.IO.Path ] :: GetFileNameWithoutExtension ( " ${boundary_src_zip_path} " )
$src_destination = Join-Path ( Split-Path $ { boundary_src_zip_path } ) $base
Expand-Archive -Path $ { boundary_src_zip_path } -DestinationPath $src_destination -Force
@ -58,11 +60,13 @@ choco install cmake --version 3.31.8 -y
refreshenv
# Set the github token if provided
Write-Host " Checking if GitHub token is provided... "
if ( " ${github_token} " -ne " " ) {
# configure git to be able to download from private repos
git config - -system url . " https://oauth2: ${github_token} @github.com " . insteadOf " https://github.com "
# download opencv artifact if available
Write-Host " Downloading OpenCV artifact.. "
[ Environment ] :: SetEnvironmentVariable ( " GITHUB_TOKEN " , " ${github_token} " , [ EnvironmentVariableTarget ] :: Machine )
choco install gh -y
refreshenv
@ -100,6 +104,7 @@ if ("${github_token}" -ne "") {
)
# go mod download
Write-Host " Downloading Go modules at $src_destination ... "
cd $src_destination
go mod download
}