Add example openbench.yml file
This commit is contained in:
1 parent
47ff4dd4b9
commit
1bdb332aca
1 file changed
+30
@@ -0,0 +1,30 @@
|
|||||||
|
name: OpenBench Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_archive:
|
||||||
|
name: Build and Archive
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
nnue_flags: [avx2, avx512]
|
||||||
|
cpu_flags: [popcnt, pext]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Setup Linux GCC ${{ matrix.version }}
|
||||||
|
uses: egor-tensin/setup-gcc@v1
|
||||||
|
with:
|
||||||
|
version: 11
|
||||||
|
platform: x86
|
||||||
|
- name: Clone Ethereal
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Build Ethereal ${{ matrix.flags }}
|
||||||
|
run: make EVALFILE=none CC=gcc static=1 ${{ matrix.nnue_flags }}=1 ${{ matrix.cpu_flags }}=1
|
||||||
|
- name: Archive ${{ matrix.nnue_flags }}-${{ matrix.cpu_flags }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ github.sha }}-linux-${{ matrix.nnue_flags }}-${{ matrix.cpu_flags }}
|
||||||
|
path: ethereal
|
||||||
Reference in new issue
Block a user