Skip to content

Commit

Permalink
Merge pull request #215 from sora-xor/duty/fix_tags_build
Browse files Browse the repository at this point in the history
Update build.sh
  • Loading branch information
f33r0 authored Mar 16, 2024
2 parents b8e60f0 + 192d5a7 commit e36114c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions housekeeping/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ errorfile="benchmarking_errors.txt"
test() {
if [[ $buildTag != null ]] && [[ ${TAG_NAME} != null || ${TAG_NAME} != '' ]]; then
if [[ ${TAG_NAME} =~ 'benchmarking'* ]]; then
buildfeature="runtime-benchmarks,kusama"
elif [[ -n $buildTag ]] || [[ ${TAG_NAME} = 'stage-'* ]] || [[ ${TAG_NAME} = 'test-'* ]]; then
buildfeature="rococo"
buildfeature="runtime-benchmarks,kusama"
elif [[ ${TAG_NAME} = 'kusama-'* ]]; then
buildfeature="kusama"
buildfeature="kusama"
elif [[ ${TAG_NAME} = 'polkadot-'* ]]; then
buildfeature="polkadot"
elif [[ ${TAG_NAME} = 'alphanet-'* ]] || [[ ${TAG_NAME} = 'stage-alphanet-'* ]] ; then
buildfeature="alphanet"
buildfeature="polkadot"
elif [[ ${TAG_NAME} = 'alphanet-'* ]] || [[ ${TAG_NAME} = 'stage-alphanet-'* ]] ; then
buildfeature="alphanet"
elif [[ -n $buildTag ]] || [[ ${TAG_NAME} = 'stage-'* ]] || [[ ${TAG_NAME} = 'test-'* ]]; then
buildfeature="rococo"
fi
printf " Testing for feature $buildfeature will start now... \n"
$testcmd "$buildfeature"
Expand Down Expand Up @@ -62,12 +62,12 @@ build() {
if [[ ${TAG_NAME} =~ 'benchmarking'* ]]; then
buildcmd="cargo build --release --locked --bin parachain-collator --features"
buildfeature="runtime-benchmarks,kusama"
elif [[ -n $buildTag ]] || [[ ${TAG_NAME} = 'stage-'* ]] || [[ ${TAG_NAME} = 'test-'* ]]; then
buildfeature="rococo"
elif [[ ${TAG_NAME} = 'kusama-'* ]]; then
buildfeature="kusama"
elif [[ ${TAG_NAME} = 'polkadot-'* ]]; then
buildfeature="polkadot"
elif [[ -n $buildTag ]] || [[ ${TAG_NAME} = 'stage-'* ]] || [[ ${TAG_NAME} = 'test-'* ]]; then
buildfeature="rococo"
fi
printf "🕙 Building with feature $buildfeature will start now... \n"
$buidcmd "$buildfeature"
Expand Down

0 comments on commit e36114c

Please sign in to comment.