Skip to content

Commit 203c41b

Browse files
validate: the llvm leg has no more shards than selected members (#574)
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent d35fdc6 commit 203c41b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/validate.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,14 @@ jobs:
10911091
# planner about toolchains is the larger one, and it needs a timing
10921092
# table per leg that CI does not produce yet.
10931093
lln=$(( ln + 3 ))
1094+
# A shard holds one member at least: a selective run of one member
1095+
# gave the llvm leg four shards, three of which set up a runner and
1096+
# built nothing.
1097+
if [ "$MEMBERS" != "__ALL__" ]; then
1098+
count=$(echo $MEMBERS | wc -w)
1099+
[ "$count" -lt 1 ] && count=1
1100+
[ "$lln" -gt "$count" ] && lln=$count
1101+
fi
10941102
{
10951103
printf '{"include":['
10961104
# linux runs TWICE: once on mcpp's default toolchain and once on

0 commit comments

Comments
 (0)