Skip to content

Commit

Permalink
ci: wip actions
Browse files Browse the repository at this point in the history
  • Loading branch information
losman0s committed Dec 4, 2023
1 parent 3f535ac commit c2b39d2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions scripts/build-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ cd $ROOT
cluster=$1

if [ -z "$cluster" ]; then
echo "Usage: $0 <cluster>"
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"

0 comments on commit c2b39d2

Please sign in to comment.