From 1bdb332acaa6970767eb6793d3cfaa8defbea073 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 24 May 2023 18:16:03 -0400 Subject: [PATCH] Add example openbench.yml file --- Documentation/openbench.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/openbench.yml diff --git a/Documentation/openbench.yml b/Documentation/openbench.yml new file mode 100644 index 00000000..bb0b1598 --- /dev/null +++ b/Documentation/openbench.yml @@ -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 \ No newline at end of file