From 42aa64f98558be3930d8901e7536937dbe13f37e Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 21 Aug 2023 11:28:03 +0530 Subject: [PATCH] fix: workflow size issue --- workflow/providers/hooks/constants.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workflow/providers/hooks/constants.py b/workflow/providers/hooks/constants.py index 160b6156..c519fdd0 100644 --- a/workflow/providers/hooks/constants.py +++ b/workflow/providers/hooks/constants.py @@ -125,6 +125,17 @@ def cargo_generator(task_list): substrate-api-client = {{ git = "https://github.com/HugoByte/substrate-api-client.git", default-features = false, features = ["staking-xt"], branch ="wasm-support"}} pallet-staking = {{ git = "https://github.com/paritytech/substrate.git", package = "pallet-staking" ,rev = "eb1a2a8" }} +[profile.release] +# Do not perform backtrace for panic on release builds. +panic = 'abort' +# Perform optimizations on all codegen units. +codegen-units = 1 +# Optimize for size. +opt-level = 'z' # or 'z' to optimize "aggressively" for size +# Enable link time optimization. +lto = true +strip = true + """ return cargo_dependencies