mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
Clean before running daml build (#2816)
This should hopefully fix some of the flakiness we’ve been seeing on Windows. Not entirely sure what’s going wrong without the clean but since this only happens the lack of sandboxing seems like the most likely difference.
This commit is contained in:
parent
cc452a626f
commit
f1a9afdf17
@ -9,17 +9,21 @@ genrule(
|
|||||||
srcs = glob(["**/*.daml"]),
|
srcs = glob(["**/*.daml"]),
|
||||||
outs = ["trigger.dar"],
|
outs = ["trigger.dar"],
|
||||||
cmd = """
|
cmd = """
|
||||||
cat << EOF > daml.yaml
|
set -eou pipefail
|
||||||
|
TMP_DIR=$$(mktemp -d)
|
||||||
|
mkdir -p $$TMP_DIR/daml/Daml
|
||||||
|
cp -L $(location Daml/Trigger.daml) $$TMP_DIR/daml/Daml
|
||||||
|
cat << EOF > $$TMP_DIR/daml.yaml
|
||||||
sdk-version: 0.0.0
|
sdk-version: 0.0.0
|
||||||
name: trigger
|
name: trigger
|
||||||
source: triggers/daml
|
source: daml
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
- daml-stdlib
|
- daml-stdlib
|
||||||
- daml-prim
|
- daml-prim
|
||||||
EOF
|
EOF
|
||||||
|
$(location //compiler/damlc) build --project-root=$$TMP_DIR -o $$PWD/$(location trigger.dar)
|
||||||
$(location //compiler/damlc) build -o $(location trigger.dar)
|
rm -rf $$TMP_DIR
|
||||||
""",
|
""",
|
||||||
tools = ["//compiler/damlc"],
|
tools = ["//compiler/damlc"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
|
@ -19,18 +19,22 @@ genrule(
|
|||||||
outs = ["acs.dar"],
|
outs = ["acs.dar"],
|
||||||
cmd = """
|
cmd = """
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
cat << EOF > daml.yaml
|
TMP_DIR=$$(mktemp -d)
|
||||||
|
mkdir -p $$TMP_DIR/daml
|
||||||
|
cp -L $(location :daml/ACS.daml) $$TMP_DIR/daml
|
||||||
|
cp -L $(location //triggers/daml:trigger.dar) $$TMP_DIR/
|
||||||
|
cat << EOF > $$TMP_DIR/daml.yaml
|
||||||
sdk-version: 0.0.0
|
sdk-version: 0.0.0
|
||||||
name: acs
|
name: acs
|
||||||
source: triggers/tests/daml
|
source: daml
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
- daml-stdlib
|
- daml-stdlib
|
||||||
- daml-prim
|
- daml-prim
|
||||||
- $(location //triggers/daml:trigger.dar)
|
- trigger.dar
|
||||||
EOF
|
EOF
|
||||||
|
$(location //compiler/damlc) build --project-root=$$TMP_DIR -o $$PWD/$(location acs.dar)
|
||||||
$(location //compiler/damlc) build -o $(location acs.dar)
|
rm -rf $$TMP_DIR
|
||||||
""",
|
""",
|
||||||
tools = ["//compiler/damlc"],
|
tools = ["//compiler/damlc"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
|
Loading…
Reference in New Issue
Block a user