Skip to content

Commit 4752c54

Browse files
Update .github/workflows/games.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent bd14390 commit 4752c54

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/games.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,16 @@ jobs:
135135
-engine cmd=base-engine/$OUTPUT_EXEC name=base \
136136
-openings file=tools/UHO_Lichess_4852_v1.epd format=epd order=random \
137137
-each tc=$TC -startup-ms 600000 -ucinewgame-ms 600000 -ping-ms 600000 \
138-
-rounds $(( ${{ github.event.inputs.rounds }} / 30 )) -repeat -log level=err \
138+
ROUNDS: ${{ github.event.inputs.rounds }}
139+
run: |
140+
set -eo pipefail
141+
if [[ ! "$ROUNDS" =~ ^[0-9]+$ ]]; then
142+
echo "rounds must be a decimal integer" >&2
143+
exit 1
144+
fi
145+
rounds_value=$((10#$ROUNDS))
146+
shard_rounds=$((rounds_value / 30))
147+
-rounds "$shard_rounds" -repeat -log level=err \
139148
-concurrency $(nproc) -testEnv -sprt elo0=$ELO0 elo1=$ELO1 alpha=0.05 beta=0.05 \
140149
-pgnout notation=san nodes=true \
141150
file=games_${{ matrix.shard }}.pgn \

0 commit comments

Comments
 (0)