forked from fairy-stockfish/Fairy-Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (60 loc) · 2.86 KB
/
game_ply_limit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: branch(game_ply_limit)
on:
push:
branches: [ game_ply_limit ]
pull_request:
branches: [ game_ply_limit ]
env:
EXE_NAME_STD: fairy-stockfish
EXE_NAME_LB: fairy-stockfish-largeboards
EXE_NAME_ALL: fairy-stockfish-largeboards-all
jobs:
configure:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Set matrix data
id: set-matrix
run: |
echo "build matrix:" >> $GITHUB_STEP_SUMMARY
echo "matrix=$(jq -c . < .github/workflows/matrix.json)" >> $GITHUB_STEP_SUMMARY
echo "matrix=$(jq -c . < .github/workflows/matrix.json)" >> $GITHUB_OUTPUT
build:
needs: configure
runs-on: ${{matrix.run_os}}
strategy:
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
steps:
- name: Print matrix data
run: |
echo "Matrix data:" >> $GITHUB_STEP_SUMMARY
echo "{name:${{matrix.NAME}},arch:${{matrix.arch}},run-os:${{matrix.Run_os}},comp:${{matrix.COMP}},}" >> $GITHUB_STEP_SUMMARY
- uses: actions/checkout@v4
- name: Check compiler
run: ${{ matrix.COMPCXX }} -v
- name: make
if: ${{ matrix.build_std == true }}
run: cd src && make clean && make -j build COMP=${{ matrix.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ matrix.EXT }} && strip ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ matrix.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.build_std == true }}
with:
name: ${{ matrix.NAME }} ${{ env.EXE_NAME_STD }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_STD }}_${{ matrix.arch }}${{ matrix.EXT }}
- name: make largeboards
if: ${{ matrix.build_lb == true }}
run: cd src && make clean && make -j build COMP=${{ matrix.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ matrix.EXT }} largeboards=yes && strip ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ matrix.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.build_lb == true }}
with:
name: ${{ matrix.NAME }} ${{ env.EXE_NAME_LB }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_LB }}_${{ matrix.arch }}${{ matrix.EXT }}
- name: make all
if: ${{ matrix.build_all == true }}
run: cd src && make clean && make -j build COMP=${{ matrix.COMP }} ARCH=${{ matrix.arch }} EXE=${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ matrix.EXT }} largeboards=yes all=yes && strip ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ matrix.EXT }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.build_all == true }}
with:
name: ${{ matrix.NAME }} ${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}
path: src/${{ env.EXE_NAME_ALL }}_${{ matrix.arch }}${{ matrix.EXT }}