30 lines
853 B
YAML
30 lines
853 B
YAML
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 |