daml/compatibility/build-release-artifacts.sh
mziolekda ac0bac67ef
reduce the usage of sandbox-on-x (#16878)
* reduce the usage of sandbox-on-x

* fix broken build

* fix build

* drop tests of very old compilers that are not supported by canton

* stop building sandbox-on-postgres when it is not used anyway

* drop tests of very old triggers that are not supported by canton
2023-05-22 14:38:37 +02:00

29 lines
1000 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Build the release artifacts required for running the compatibility
# tests against HEAD. At the moment this includes the SDK release tarball
# and the ledger-api-test-tool fat JAR.
set -eou pipefail
cd "$(dirname "$0")/.."
eval "$(./dev-env/bin/dade-assist)"
# We allow overwriting this since on CI we build this in a separate step and upload it first
# before fetching it in another step.
HEAD_TARGET_DIR=${1:-compatibility/head_sdk}
git clean -fxd -e 'daml-*.tgz' $HEAD_TARGET_DIR
bazel build \
//release:sdk-release-tarball \
//ledger-test-tool/tool:ledger-api-test-tool_deploy.jar
cp -f bazel-bin/release/sdk-release-tarball-ce.tar.gz "$HEAD_TARGET_DIR"
cp -f bazel-bin/ledger-test-tool/tool/ledger-api-test-tool_deploy.jar "$HEAD_TARGET_DIR"
cp -f templates/create-daml-app-test-resources/messaging.patch "$HEAD_TARGET_DIR"