Skip to content

Commit e054c68

Browse files
committed
Try to set up test dependencies on Github Actions
1 parent 62ba2c1 commit e054c68

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
# Stockfish
4+
wget https://stockfish.s3.amazonaws.com/stockfish-11-linux.zip
5+
unzip stockfish-11-linux.zip
6+
mkdir -p bin
7+
cp stockfish-11-linux/Linux/stockfish_20011801_x64_bmi2 bin/stockfish
8+
chmod +x bin/stockfish
9+
echo "`pwd`/bin" >> $GITHUB_PATH
10+
11+
# Crafty
12+
git clone https://github.com/lazydroid/crafty-chess
13+
cd crafty-chess
14+
make unix-gcc
15+
pwd >> $GITHUB_PATH
16+
cd ..
17+
18+
# Gaviota libgtb
19+
git clone https://github.com/michiguel/Gaviota-Tablebases.git --depth 1
20+
cd Gaviota-Tablebases
21+
make
22+
echo "::set-env LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}"
23+
cd ..
24+
25+
# Gaviota tablebases
26+
#cd data/gaviota
27+
#travis_wait wget --no-verbose --no-check-certificate --no-clobber --input-file TEST-SOURCE.txt
28+
#cd ../..
29+
30+
# Suicide syzygy bases
31+
#cd data/syzygy/suicide
32+
#travis_wait wget --no-verbose --no-check-certificate --no-clobber --input-file TEST-SOURCE.txt
33+
#cd ../../..

.github/workflows/setup-windows-latest.sh

Whitespace-only changes.

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/setup-python@v2
1515
with:
1616
python-version: ${{ matrix.python-version }}
17+
- run: .github/workflows/setup-${{ matrix.os }}.sh
1718
- run: pip install -e .
1819
- run: python test.py -v
1920
perft:
@@ -58,4 +59,5 @@ jobs:
5859
- run: sudo apt-get update && sudo apt-get install -y docutils-common
5960
- run: python setup.py --long-description | rst2html --strict --no-raw > /dev/null
6061
- run: pip install -e .
62+
- run: .github/workflows/setup-ubuntu-latest.sh
6163
- run: python -m doctest README.rst

0 commit comments

Comments
 (0)