daml/release/BUILD.bazel
Moritz Kiefer 5cb857d902
Release EE SDK tarballs and installer (#9086)
* Release EE SDK tarballs and installer

As before, no way of testing this. I’ll do a snapshot afterwards.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* Rename EE artifacts

changelog_begin
changelog_end
2021-03-11 14:49:48 +01:00

87 lines
1.9 KiB
Python

# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("//bazel_tools:haskell.bzl", "da_haskell_binary")
load("util.bzl", "protos_zip", "sdk_tarball")
load("@build_environment//:configuration.bzl", "sdk_version")
load("@os_info//:os_info.bzl", "is_windows")
da_haskell_binary(
name = "release",
srcs = glob(["src/**/*.hs"]),
hackage_deps = [
"aeson",
"async",
"ansi-terminal",
"base",
"base64-bytestring",
"bytestring",
"conduit",
"conduit-extra",
"containers",
"connection",
"cryptohash",
"directory",
"exceptions",
"extra",
"fast-logger",
"filepath",
"http-client",
"http-client-tls",
"http-conduit",
"http-types",
"lens",
"lifted-async",
"lifted-base",
"monad-control",
"monad-logger",
"optparse-applicative",
"path",
"path-io",
"process",
"retry",
"safe",
"safe-exceptions",
"semver",
"split",
"time",
"text",
"temporary",
"transformers",
"unliftio-core",
"unordered-containers",
"yaml",
"mtl",
"xml-conduit",
],
src_strip_prefix = "src",
visibility = ["//visibility:public"],
deps = [
"//:sdk-version-hs-lib",
"//libs-haskell/test-utils",
],
)
# Disabled on Windows since directory outputs can cause issues.
protos_zip(
name = "protobufs",
) if not is_windows else None
[
sdk_tarball(
"sdk-release-tarball-{}".format(edition),
sdk_version,
edition,
)
for edition in [
"ce",
"ee",
]
]
alias(
name = "sdk-release-tarball",
actual = "sdk-release-tarball-ce",
visibility = ["//visibility:public"],
)