Skip to content

Commit 5202e7c

Browse files
committed
no functional changes
1 parent c056095 commit 5202e7c

22 files changed

Lines changed: 1406 additions & 1494 deletions

.github/workflows/clang-format.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: clang-format
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
push:
7+
branches-ignore:
8+
- main
9+
jobs:
10+
format:
11+
if: github.actor != 'github-actions[bot]'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Install clang-format
22+
run: sudo apt-get update && sudo apt-get install -y clang-format
23+
24+
- name: Run clang-format
25+
run: |
26+
clang-format -i $(git ls-files '*.cpp' '*.hpp' '*.h' '*.c')
27+
28+
- name: Commit and push changes
29+
run: |
30+
if ! git diff --quiet; then
31+
git config user.email "actions@github.com"
32+
git config user.name "GitHub Actions"
33+
git commit -am "Apply clang-format"
34+
git push
35+
fi

.github/workflows/games.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ jobs:
115115
-rounds ${{ github.event.inputs.rounds }} \
116116
-concurrency $(nproc) \
117117
-pgnout notation=san nodes=true file=games.pgn \
118-
-sprt elo0=0 elo1=2 alpha=0.05 beta=0.05
118+
-sprt elo0=0 elo1=2 alpha=0.05 beta=0.05 | tee results.txt
119119
120120
./ordo-linux64 -o ratings.txt -- games.pgn
121+
tac results.txt | sed -n '/Total Time/,/^--------------------------------------------------$/p' | tac >> ratings.txtv
121122
122123
- name: Upload results
123124
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
!LICENSE
1010
!.gitignore
1111
!CMakeLists.txt
12+
!.github/
13+
!.github/**

0 commit comments

Comments
 (0)