Last active
July 31, 2023 23:51
-
-
Save ItalyPaleAle/e55d6140b29da2ee6cd2539ad22cbe85 to your computer and use it in GitHub Desktop.
build-dapr.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
DIR=$(dirname "$BASH_SOURCE") | |
echo "Getting into directory ${DIR}/dapr" | |
cd "${DIR}/dapr" | |
#DEBUG=1 make build | |
CGO_ENABLED=0 \ | |
go build \ | |
-ldflags="-X github.com/dapr/dapr/pkg/buildinfo.gitversion=v1-dirty -X github.com/dapr/dapr/pkg/buildinfo.version=dev -X github.com/dapr/kit/logger.DaprVersion=dev -s -w" \ | |
-tags "allcomponents,subtlecrypto,${BUILD_TAGS}" \ | |
-o ~/.dapr/bin/daprd \ | |
./cmd/daprd/; | |
echo "Built dapr to ~/.dapr/bin/daprd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment