From 0451f02cb2bae6e7057cc4214545448e123c2fb3 Mon Sep 17 00:00:00 2001 From: Zak Fein Date: Sat, 20 Jul 2024 18:25:11 +0300 Subject: [PATCH] cargo profile changed to release --- zombienet/docker/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zombienet/docker/Makefile b/zombienet/docker/Makefile index 9e81e87802..11b8ee82a4 100644 --- a/zombienet/docker/Makefile +++ b/zombienet/docker/Makefile @@ -1,11 +1,14 @@ RUST_IMAGE=rust:1.79-slim-bookworm # bookworm (Debian 12) MINIDEB_IMAGE=bitnami/minideb@sha256:6cc3baf349947d587a9cd4971e81ff3ffc0d17382f2b5b6de63d6542bff10c16 +SCCACHE_VERSION ?= 0.7.4 +# empty for local usage DOCKER_REGISTRY_PATH ?= + PLATFORM ?= linux/amd64 ARCHITECTURE ?= amd64 -SCCACHE_VERSION ?= 0.7.4 + ARTIFACTS_REPO ?= kagome-apt REGION ?= europe-north1 @@ -15,7 +18,7 @@ GOOGLE_APPLICATION_CREDENTIALS ?= PROJECT_ID ?= CARGO_PACKETS=-p test-parachain-adder-collator -p polkadot-test-malus -p test-parachain-undying-collator -RESULT_BINARIES=./target/testnet/malus ./target/testnet/undying-collator ./target/testnet/adder-collator +RESULT_BINARIES=./target/release/malus ./target/release/undying-collator ./target/release/adder-collator RESULT_BIN_NAMES=malus undying-collator adder-collator POLKADOT_BINARY_PACKAGE_VERSION ?= @@ -159,7 +162,7 @@ polkadot_binary: -c "tail -f /dev/null"; \ docker exec -t $$CONTAINER_NAME /bin/bash -c \ "cargo update $(CARGO_PACKETS) && \ - cargo build --profile testnet $(CARGO_PACKETS) && \ + cargo build --release $(CARGO_PACKETS) && \ cp $(RESULT_BINARIES) /tmp/polkadot_binary/ && \ ./build_apt_package.sh \ $$POLKADOT_RELEASE_GLOBAL_NUMERIC-$$SHORT_COMMIT_HASH \