Skip to content

Commit

Permalink
more placeholders for linux only build
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvihladremio committed Jul 13, 2023
1 parent 365ac47 commit c731b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ fi
GIT_SHA=`git rev-parse --short HEAD`
VERSION=`git rev-parse --abbrev-ref HEAD`
LDFLAGS="-X github.com/dremio/dremio-diagnostic-collector/pkg/versions.GitSha=$GIT_SHA -X github.com/dremio/dremio-diagnostic-collector/pkg/versions.Version=$VERSION"
touch ./cmd/root/ddcbinary/output/ddc.zip
GOOS=linux GOARCH=amd64 go build -ldflags "$LDFLAGS" -o ./bin/ddc
zip ./bin/ddc.zip ./bin/ddc
mv ./bin/ddc.zip ./cmd/root/ddcbinary/output/ddc.zip
Expand Down
1 change: 1 addition & 0 deletions script/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $GIT_SHA = git rev-parse --short HEAD
$VERSION = git rev-parse --abbrev-ref HEAD
$LDFLAGS = "-X github.com/dremio/dremio-diagnostic-collector/pkg/versions.GitSha=$GIT_SHA -X github.com/dremio/dremio-diagnostic-collector/pkg/versions.Version=$VERSION"

New-Item -ItemType File -Path ./cmd/root/ddcbinary/output/ddc.zip -Force
# This assumes that you have 'go' installed in your environment
$env:GOOS="linux"
$env:GOARCH="amd64"
Expand Down

0 comments on commit c731b7a

Please sign in to comment.