Skip to content

Update game_ply_limit2.yml #30

Update game_ply_limit2.yml

Update game_ply_limit2.yml #30

name: branch(game_ply_limit)
env:
EXE_NAME_STD: fairy-stockfish
EXE_NAME_LB: fairy-stockfish-largeboards
EXE_NAME_ALL: fairy-stockfish-largeboards-all
on:
push:
branches: [ game_ply_limit ]
pull_request:
branches: [ game_ply_limit ]
jobs:
macos:
strategy:
matrix:
arch: ["x86-64-bmi2", "x86-64-modern", "x86-64"]
runs-on: macos-13
env:
COMPCXX: clang++
COMP: clang
NAME: macos
steps:
- uses: actions/checkout@v4
- name: Check compiler
run: ${{ env.COMPCXX }} -v
- name: make
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }} && strip ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- name: make largeboards
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes && strip ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- name: make all
if: ${{ matrix.arch == 'x86-64' }}
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes all=yes && strip ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.arch == 'x86-64' }}
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
macos-m1:
strategy:
matrix:
arch: ["apple-silicon"]
runs-on: macos-14
env:
COMPCXX: clang++
COMP: clang
NAME: macos-m1
steps:
- uses: actions/checkout@v4
- name: Check compiler
run: ${{ env.COMPCXX }} -v
- name: make
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_STD }}_${{ matrix.arch }} && strip ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
- name: make largeboards
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes && strip ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- name: make all
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes all=yes && strip ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
windows:
strategy:
matrix:
arch: ["x86-64-bmi2", "x86-64-modern", "x86-64"]
runs-on: windows-2022
env:
COMPCXX: g++
COMP: mingw
EXT: .exe
NAME: windows
steps:
- uses: al-cheb/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"
- uses: actions/checkout@v4
- name: Check compiler
run: ${{ env.COMPCXX }} -v
- name: make
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }} && strip ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- name: make largeboards
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes && strip ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- name: make all
if: ${{ matrix.arch == 'x86-64' }}
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes all=yes && strip ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.arch == 'x86-64' }}
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
linux:
strategy:
matrix:
arch: ["x86-64-bmi2", "x86-64-modern", "x86-64"]
runs-on: ubuntu-20.04
env:
COMPCXX: g++
COMP: gcc
NAME: ubuntu
steps:
- uses: actions/checkout@v4
- name: Check compiler
run: ${{ env.COMPCXX }} -v
- name: make
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }} && strip ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ env.EXT }}
- name: make largeboards
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes && strip ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ env.EXT }}
- name: make all
if: ${{ matrix.arch == 'x86-64' }}
run: cd src && make clean && make -j build COMP=${{ env.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }} largeboards=yes all=yes && strip ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.arch == 'x86-64' }}
with:
name: ${{ env.NAME }} ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ env.EXT }}