mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions (#17916)
* Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions * No need to add the cloned sources to git
This commit is contained in:
parent
9c85632f62
commit
e9c4feb562
@ -19,14 +19,30 @@ git clone --depth 1 --branch main $repo_url $tmp
|
|||||||
head=$(git -C $tmp rev-parse HEAD)
|
head=$(git -C $tmp rev-parse HEAD)
|
||||||
echo "cloned at revision $head"
|
echo "cloned at revision $head"
|
||||||
|
|
||||||
for path in community daml-common-staging; do
|
daml_common_staging_src="$tmp/daml-common-staging"
|
||||||
src=$tmp/$path
|
community_src="$tmp/community"
|
||||||
dst=canton-3x/$path
|
|
||||||
rm -rf $dst
|
daml_common_staging_dst="canton-3x/daml-common-staging"
|
||||||
mkdir -p $(dirname $dst)
|
community_dst="canton-3x/community"
|
||||||
cp -rf $src $dst
|
|
||||||
git add $dst
|
# Clean-up existing dirs
|
||||||
done
|
rm -rf $daml_common_staging_dst $community_dst
|
||||||
|
|
||||||
|
# Copy files from the cloned Canton repo /community and exclude symlinks to Daml sources
|
||||||
|
rsync -a \
|
||||||
|
--exclude="$community_src/participant/src/main/resources/ledger-api/VERSION" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing/sample-service-test-symlink/scala/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing/rs-grpc-pekko-test-symlink/scala/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-protobuf-java/protobuf-daml-symlinks/transaction/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-protobuf-java/protobuf-daml-symlinks/archive/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing-0/rs-grpc-bridge-test-symlink/java/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing-0/ledger-resources-test-symlink/scala/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing-0/protobuf-daml-symlinks/ledger-api-sample-service/hello.proto" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing-0/observability-metrics-test-symlink/scala/com" \
|
||||||
|
--exclude="$community_src/lib/daml-copy-testing-0/observability-tracing-test-symlink/scala/com" \
|
||||||
|
$community_src canton-3x
|
||||||
|
|
||||||
|
rsync -a $daml_common_staging_src canton-3x
|
||||||
|
|
||||||
sed -i 's/canton-3x\///' .bazelignore
|
sed -i 's/canton-3x\///' .bazelignore
|
||||||
bazel build //canton-3x/...
|
bazel build //canton-3x/...
|
||||||
|
Loading…
Reference in New Issue
Block a user