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 OS: ${{ matrix.config.os }}
13 BINARY: ${{ matrix.binaries }}
17 - name: Ubuntu 20.04 GCC
22 - name: MacOS 12 Apple Clang
27 - name: Windows 2022 Mingw-w64 GCC x86_64
40 - binaries: x86-64-avx2
41 config: {os: macos-12}
44 working-directory: src
45 shell: ${{ matrix.config.shell }}
47 - uses: actions/checkout@v3
51 - name: Download required linux packages
52 if: runner.os == 'Linux'
55 - name: Setup msys and install required packages
56 if: runner.os == 'Windows'
57 uses: msys2/setup-msys2@v2
59 msystem: ${{ matrix.config.msys_sys }}
60 install: mingw-w64-${{ matrix.config.msys_env }} make git
62 - name: Download the used network from the fishtest framework
65 - name: Check compiler
68 - name: Test help target
74 # Compile profile guided builds
76 - name: Compile ${{ matrix.binaries }} build
79 make -j2 profile-build ARCH=$BINARY COMP=$COMP
80 make strip ARCH=$BINARY COMP=$COMP
81 mv ./stockfish$EXT ../stockfish-$OS-$BINARY$EXT
83 - name: Remove non src files
84 run: rm -f *.o .depend *.nnue
86 - name: Create tar archive.
91 cp stockfish-$OS-$BINARY$EXT stockfish/
92 cp "Top CPU Contributors.txt" stockfish/
93 cp Copying.txt stockfish/
95 tar -cvf stockfish-$OS-$BINARY.tar stockfish
97 - name: Upload binaries
98 uses: actions/upload-artifact@v3
100 name: stockfish-${{ matrix.config.os }}-${{ matrix.binaries }}
101 path: stockfish-${{ matrix.config.os }}-${{ matrix.binaries }}.tar