Update WDL Model for Berserk 13 #2167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Berserk Validation | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
engine: | |
name: Berserk on ${{matrix.os}} with gcc-${{matrix.version}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
version: [11] | |
steps: | |
- name: Set up GCC ${{matrix.version}} | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: ${{matrix.version}} | |
platform: x64 | |
- name: Clone Berserk | |
uses: actions/checkout@v2 | |
- name: Compile | |
run: cd src && make build ARCH=avx2 | |
- name: Bench | |
run: | | |
bench=$(git show --summary | grep -Po '(?<=Bench: )[0-9]+?(?=$)') | |
./src/berserk bench > output | |
real=$(grep 'Results:' output | grep -Po '(?<=[\s]{5})[0-9]+?(?= nodes)') | |
if [[ "$bench" != "$real" ]]; then echo "got $real, expected $bench" && exit 1; fi | |
- name: Install Expect | |
run: sudo apt-get install -y expect | |
- name: Perft Test | |
run: ./tests/perft.sh 1>/dev/null | |
clang-format-checking: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: RafikFarhad/clang-format-github-action@v2.1.0 | |
with: | |
sources: 'src/*.c,src/*.h' |