Skip to content

Commit

Permalink
Add a flag to build daml-sdk-head EE (digital-asset#9482)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
cocreature authored Apr 23, 2021
1 parent e3f1f55 commit a1e898e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dev-env/bin/daml-sdk-head
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ PROFILING=0
SKIP_JARS=0
JUST_DAMLC=0
SHA=0
EE=0
for opt in "$@"; do
case "$opt" in
"--nuke")
Expand All @@ -38,6 +39,9 @@ for opt in "$@"; do
"--sha")
SHA=1
;;
"--ee")
EE=1
;;
*)
echo "Unknown option: $opt"
echo "Available options:"
Expand All @@ -46,6 +50,7 @@ for opt in "$@"; do
echo " --skip-jars Skip building and installing the JARs."
echo " --damlc Update damlc only, if daml-head is already installed."
echo " --sha Include SHA information in version number."
echo " --ee Build the EE edition."

exit 1
esac
Expand Down Expand Up @@ -136,10 +141,15 @@ function cleanup() {
}
trap cleanup EXIT

SDK_RELEASE_TARBALL="sdk-release-tarball-ce.tar.gz"
if [ $EE = 1 ]; then
SDK_RELEASE_TARBALL="sdk-release-tarball-ee.tar.gz"
fi

# Building here separately so the user can see the build process which could take a while
bazel build ${BAZEL_MODE_FLAGS[@]:-} //release:sdk-release-tarball-ce.tar.gz
bazel build ${BAZEL_MODE_FLAGS[@]:-} //release:$SDK_RELEASE_TARBALL

readonly TARBALL="$(bazel info bazel-bin ${BAZEL_MODE_FLAGS[@]:-})/release/sdk-release-tarball-ce.tar.gz"
readonly TARBALL="$(bazel info bazel-bin ${BAZEL_MODE_FLAGS[@]:-})/release/$SDK_RELEASE_TARBALL"
readonly SDK_TEMP_DIR="$(mktemp -d)"
readonly SDK_DIR="${SDK_TEMP_DIR}/sdk-head"
mkdir -p "$SDK_DIR"
Expand Down

0 comments on commit a1e898e

Please sign in to comment.