Public source validation / validate (push) Failing after 3m8s
17 lines
732 B
PowerShell
17 lines
732 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$PSNativeCommandUseErrorActionPreference = $true
|
|
Set-Location (Split-Path -Parent $PSScriptRoot)
|
|
|
|
if (-not (Get-Command go -ErrorAction SilentlyContinue)) {
|
|
$cachedGo = Join-Path $env:LOCALAPPDATA 'ITWorx-Pulse\toolchains\go1.26.6\bin'
|
|
if (-not (Test-Path (Join-Path $cachedGo 'go.exe'))) { throw 'Go 1.26.6 is not available on PATH or in the recorded local toolchain cache.' }
|
|
$env:PATH = $cachedGo + ';' + $env:PATH
|
|
}
|
|
|
|
New-Item -ItemType Directory -Path bin -Force | Out-Null
|
|
go build -o bin/pulse-api.exe ./cmd/api
|
|
go build -o bin/pulse-migrate.exe ./cmd/migrate
|
|
go build -o bin/pulse-worker.exe ./cmd/worker
|
|
go build -o bin/pulse-agent.exe ./cmd/agent
|
|
pnpm --filter @itworx/pulse-web build
|