Skip to content

Commit db2341d

Browse files
committed
fix workflow
1 parent 51ec39a commit db2341d

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

‎.github/workflows/games.yml‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,15 @@ jobs:
124124
TC: ${{ github.event.inputs.tc }}
125125
ELO0: ${{ github.event.inputs.elo0 }}
126126
ELO1: ${{ github.event.inputs.elo1 }}
127+
ROUNDS: ${{ github.event.inputs.rounds }}
127128
run: |
128129
set -eo pipefail
130+
if [[ ! "$ROUNDS" =~ ^[0-9]+$ ]]; then
131+
echo "rounds must be a decimal integer" >&2
132+
exit 1
133+
fi
134+
rounds_value=$((10#$ROUNDS))
135+
shard_rounds=$((rounds_value / 30))
129136
chmod +x new-engine/engine
130137
chmod +x base-engine/$OUTPUT_EXEC
131138
chmod +x tools/fastchess
@@ -135,15 +142,6 @@ jobs:
135142
-engine cmd=base-engine/$OUTPUT_EXEC name=base \
136143
-openings file=tools/UHO_Lichess_4852_v1.epd format=epd order=random \
137144
-each tc=$TC -startup-ms 600000 -ucinewgame-ms 600000 -ping-ms 600000 \
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))
147145
-rounds "$shard_rounds" -repeat -log level=err \
148146
-concurrency $(nproc) -testEnv -sprt elo0=$ELO0 elo1=$ELO1 alpha=0.05 beta=0.05 \
149147
-pgnout notation=san nodes=true \

0 commit comments

Comments
 (0)