forked from fairy-stockfish/Fairy-Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (82 loc) · 2.27 KB
/
fairy.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: fairy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
fairy:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
env:
COMPILER: ${{ matrix.config.compiler }}
COMP: ${{ matrix.config.comp }}
CXXFLAGS: "-Werror"
strategy:
matrix:
config:
- {
name: "Ubuntu 20.04 GCC",
os: ubuntu-20.04,
compiler: g++,
comp: gcc,
run_expensive_tests: true
}
- {
name: "Ubuntu 20.04 Clang",
os: ubuntu-20.04,
compiler: clang++,
comp: clang,
run_expensive_tests: false
}
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download required packages
run: |
sudo apt update
sudo apt install expect valgrind g++-multilib
- name: Download the used network from the fishtest framework
run: |
make net
- name: Test NNUE
run: |
make clean
make -j2 ARCH=x86-64 nnue=yes debug=yes build
./stockfish bench
- name: Test NNUE largeboards
run: |
make clean
make -j2 ARCH=x86-64 largeboards=yes nnue=yes debug=yes build
./stockfish bench
- name: Build all variants
run: |
make clean
make -j2 ARCH=x86-64 largeboards=yes all=yes debug=yes build
- name: Test protocols
run: |
../tests/protocol.sh
- name: Test variants.ini
run: |
! ./stockfish check variants.ini 2>&1 >/dev/null | grep -v "Parsing variant"
- name: Test variant perft
run: |
../tests/perft.sh all
- name: Test variant bench
run: |
./stockfish bench xiangqi
./stockfish bench shogi
./stockfish bench capablanca
./stockfish bench sittuyin
- name: Test 32bit largeboards
run: |
if [[ "$COMP" == "gcc" ]]; then export EXTRACXXFLAGS=-Wno-class-memaccess; fi
make clean
make -j2 ARCH=x86-32 largeboards=yes build
../tests/perft.sh largeboard