-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (52 loc) · 2.86 KB
/
testing.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
name: Testing
on:
push:
branches:
- test
pull_request:
branches:
- test
jobs:
Fishtest:
name: linux-avx2
runs-on: ubuntu-20.04
env:
CC: clang
CXX: clang++
defaults:
run:
working-directory: Rapfi
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_BMI2=OFF -DUSE_AVX2=ON -DUSE_AVX=ON -DUSE_SSE=ON -DNO_COMMAND_MODULES=ON
cmake --build . -j2 && strip pbrain-rapfi*
mv -v pbrain-rapfi rapfi-linux-avx2
- name: Upload to fishtest (freestyle-20)
if: ${{ contains(github.event.head_commit.message, 'f20') }}
run: |
COMMIT_TITLE=$(echo "${{github.event.head_commit.message}}" | head -n 1)
curl http://test.pikafish.org/api/add_task -F engine=@build/rapfi-linux-avx2 -F variant=gomoku_freestyle20 -F "task_name=[f20] $COMMIT_TITLE" -F "password=${{secrets.NOTHING}}" -F "game_time=10" -F "inc_time=0.1" -F "depth=-1" -F "nodes=-1" -F "elo0=0" -F "elo1=5" -F "alpha=0.05" -F "beta=0.05" -F "visible=0"
- name: Upload to fishtest (freestyle-15)
if: ${{ contains(github.event.head_commit.message, 'f15') }}
run: |
COMMIT_TITLE=$(echo "${{github.event.head_commit.message}}" | head -n 1)
curl http://test.pikafish.org/api/add_task -F engine=@build/rapfi-linux-avx2 -F variant=gomoku_freestyle15 -F "task_name=[f15] $COMMIT_TITLE" -F "password=${{secrets.NOTHING}}" -F "game_time=10" -F "inc_time=0.1" -F "depth=-1" -F "nodes=-1" -F "elo0=0" -F "elo1=5" -F "alpha=0.05" -F "beta=0.05" -F "visible=0"
- name: Upload to fishtest (standard-15)
if: ${{ contains(github.event.head_commit.message, 's15') }}
run: |
COMMIT_TITLE=$(echo "${{github.event.head_commit.message}}" | head -n 1)
curl http://test.pikafish.org/api/add_task -F engine=@build/rapfi-linux-avx2 -F variant=gomoku_standard15 -F "task_name=[s15] $COMMIT_TITLE" -F "password=${{secrets.NOTHING}}" -F "game_time=10" -F "inc_time=0.1" -F "depth=-1" -F "nodes=-1" -F "elo0=0" -F "elo1=5" -F "alpha=0.05" -F "beta=0.05" -F "visible=0"
- name: Upload to fishtest (renju-15)
if: ${{ contains(github.event.head_commit.message, 'r15') }}
run: |
COMMIT_TITLE=$(echo "${{github.event.head_commit.message}}" | head -n 1)
curl http://test.pikafish.org/api/add_task -F engine=@build/rapfi-linux-avx2 -F variant=gomoku_renju15 -F "task_name=[r15] $COMMIT_TITLE" -F "password=${{secrets.NOTHING}}" -F "game_time=10" -F "inc_time=0.1" -F "depth=-1" -F "nodes=-1" -F "elo0=0" -F "elo1=5" -F "alpha=0.05" -F "beta=0.05" -F "visible=0"
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Fishtest
path: Rapfi/build/rapfi-linux-avx2