Skip to content

Commit

Permalink
Generalized builder binary
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Sep 26, 2024
1 parent 073cc1f commit c432ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function BuildVariants {
$namearch = "x64"
}

go build -ldflags "$ldflags" -o binaries/$prefix-$currentos-$namearch-$VERSION$suffix -trimpath @compileflags $path
& $BUILDER build -ldflags "$ldflags" -o binaries/$prefix-$currentos-$namearch-$VERSION$suffix -trimpath @compileflags $path
if (Get-Command "cyclonedx-gomod" -ErrorAction SilentlyContinue)
{
cyclonedx-gomod app -json -licenses -output binaries/$prefix-$currentos-$namearch-$VERSION$suffix.bom.json -main $path .
Expand All @@ -34,6 +34,7 @@ Set-Location $PSScriptRoot
$COMMIT = git rev-parse --short HEAD
$VERSION = git describe --tags --exclude latest --exclude devbuild
$DIRTYFILES = git status --porcelain
$BUILDER = "go"

if ("$DIRTYFILES" -ne "") {
$VERSION = "$VERSION-local-changes"
Expand Down

0 comments on commit c432ec4

Please sign in to comment.