Skip to content

Commit 6b2e13a

Browse files
authored
Add GitHub Actions workflow for training data loader (official-stockfish#378)
Quick dataloader compile & run test
1 parent cc44eea commit 6b2e13a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: training-data-loader
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
build-and-bench:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Compile using cmake
17+
run: bash compile_data_loader.bat
18+
19+
- name: Compile benchmark manually with g++
20+
run: >
21+
g++ -std=c++20 -g3 -O3 -DNDEBUG -DBENCH -DPGO_BUILD -march=native training_data_loader.cpp
22+
23+
- name: Run manually compiled benchmark
24+
run: ./a.out ./.pgo/small.binpack

0 commit comments

Comments
 (0)