From c2b39d2b4c7450bdf6c217fab1d069b627e22a1b Mon Sep 17 00:00:00 2001 From: man0s <95379755+losman0s@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:43:42 +0800 Subject: [PATCH] ci: wip actions --- scripts/build-workspace.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/build-workspace.sh b/scripts/build-workspace.sh index 3509926a..6acb3fb3 100755 --- a/scripts/build-workspace.sh +++ b/scripts/build-workspace.sh @@ -5,19 +5,17 @@ cd $ROOT cluster=$1 if [ -z "$cluster" ]; then - echo "Usage: $0 " - exit 1 -fi + echo "Using no cluster feature" + cmd="anchor build" -if [ "$cluster" = "mainnet" ]; then - cluster_feature="mainnet-beta" +elif [ "$cluster" = "mainnet" ]; then + cmd="anchor build -- --features mainnet-beta" elif [ "$cluster" = "devnet" ]; then - cluster_feature=" devnet" + cmd="anchor build -- --features devnet" else echo "Error: Unknown cluster: $cluster" exit 1 fi -cmd="anchor build -- --features $cluster_feature" echo "Running: $cmd" eval "$cmd"