-
Notifications
You must be signed in to change notification settings - Fork 59
50 lines (39 loc) · 1.25 KB
/
Copy pathgames.yml
File metadata and controls
50 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Games
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
games:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build the engine
run: cargo build --verbose
- name: Checkout fastchess
uses: actions/checkout@v5
with:
repository: Disservin/fastchess
path: fastchess
ref: dcf2241b23388454fcec954ce6a39d28be3f8cca
persist-credentials: false
- name: Build fastchess
working-directory: fastchess
run: make -j
- name: Run games
working-directory: fastchess
run: |
./fastchess -rounds 8 -games 1 -concurrency 4 -openings file=app/tests/data/openings.epd format=epd order=random -srand $RANDOM \
-engine name=dev1 cmd=../target/debug/reckless \
-engine name=dev2 cmd=../target/debug/reckless \
-each proto=uci tc=8+0.08 -log file=fast.log | tee fast.out
cat fast.log
! grep -q "illegal move" fast.out || exit 1
! grep -q "disconnect" fast.out || exit 1
! grep -q "stall" fast.out || exit 1