-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (71 loc) · 2.21 KB
/
perft.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
name: Perft
on:
workflow_dispatch:
inputs:
fen:
description: 'fen'
required: true
default: 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'
depth:
description: 'depth'
required: true
divide:
description: 'Run also divide'
required: false
type: boolean
jobs:
perft:
runs-on: ubuntu-latest
env:
DOTNET_VERSION: 8.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_TieredPGO: 1
DOTNET_ReadyToRun: 0
DOTNET_TC_QuickJitForLoops: 1
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Nuget cache
uses: actions/cache@v3
with:
path:
~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build -c Release
- name: Run perft ${{ github.event.inputs.depth }} on ${{ github.event.inputs.fen }}
run: dotnet run -c Release --no-build "position fen ${{ github.event.inputs.fen }}" "perft ${{ github.event.inputs.depth }}" "quit"
working-directory: ./src/Lynx.Cli
divide:
runs-on: ubuntu-latest
if: github.event.inputs.divide
env:
DOTNET_VERSION: 8.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_TieredPGO: 1
DOTNET_ReadyToRun: 0
DOTNET_TC_QuickJitForLoops: 1
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Nuget cache
uses: actions/cache@v3
with:
path:
~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build -c Release
- name: Run divide ${{ github.event.inputs.depth }} on ${{ github.event.inputs.fen }}
run: dotnet run -c Release --no-build "position fen ${{ github.event.inputs.fen }}" "divide ${{ github.event.inputs.depth }}" "quit"
working-directory: ./src/Lynx.Cli