6 name: ${{ matrix.config.name }} ${{ matrix.binaries }}
7 runs-on: ${{ matrix.config.os }}
9 COMPILER: ${{ matrix.config.compiler }}
10 COMP: ${{ matrix.config.comp }}
11 EXT: ${{ matrix.config.ext }}
12 NAME: ${{ matrix.config.simple_name }}
13 BINARY: ${{ matrix.binaries }}
17 - name: Ubuntu 20.04 GCC
23 - name: MacOS 12 Apple Clang
29 - name: Windows 2022 Mingw-w64 GCC x86_64
43 - binaries: x86-64-avx2
44 config: {os: macos-12}
47 working-directory: src
48 shell: ${{ matrix.config.shell }}
50 - uses: actions/checkout@v3
54 - name: Download required linux packages
55 if: runner.os == 'Linux'
58 - name: Setup msys and install required packages
59 if: runner.os == 'Windows'
60 uses: msys2/setup-msys2@v2
62 msystem: ${{ matrix.config.msys_sys }}
63 install: mingw-w64-${{ matrix.config.msys_env }} make git
65 - name: Download the used network from the fishtest framework
68 - name: Check compiler
71 - name: Test help target
77 # Compile profile guided builds
79 - name: Compile ${{ matrix.binaries }} build
81 make -j2 profile-build ARCH=$BINARY COMP=$COMP
82 make strip ARCH=$BINARY COMP=$COMP
83 mv ./stockfish$EXT ../stockfish-$NAME-$BINARY$EXT
85 - name: Remove non src files
90 git clone https://github.com/official-stockfish/Stockfish.wiki.git ../wiki
93 - name: Create tar archive.
99 cp stockfish-$NAME-$BINARY$EXT stockfish/
100 cp "Top CPU Contributors.txt" stockfish/
101 cp Copying.txt stockfish/
102 cp AUTHORS stockfish/
103 cp CITATION.cff stockfish/
104 cp README.md stockfish/
105 tar -cvf stockfish-$NAME-$BINARY.tar stockfish
107 - name: Upload binaries
108 uses: actions/upload-artifact@v3
110 name: stockfish-${{ matrix.config.os }}-${{ matrix.binaries }}
111 path: stockfish-${{ matrix.config.simple_name }}-${{ matrix.binaries }}.tar
114 if: startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'
115 uses: softprops/action-gh-release@v1
117 files: stockfish-${{ matrix.config.simple_name }}-${{ matrix.binaries }}.tar