You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpustack/hack/windows/generate.ps1

27 lines
604 B

$ErrorActionPreference = "Stop"
# Get the root directory and third_party directory
$ROOT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | Split-Path -Parent | Split-Path -Parent -Resolve
# Include the common functions
. "$ROOT_DIR/hack/lib/windows/init.ps1"
function Generate {
poetry run gen
if ($LASTEXITCODE -ne 0) {
GPUStack.Log.Fatal "failed to run poetry run gen."
}
}
#
# main
#
GPUStack.Log.Info "+++ GENERATE +++"
try {
Generate
} catch {
GPUStack.Log.Fatal "failed to generate: $($_.Exception.Message)"
}
GPUStack.Log.Info "--- GENERATE ---"