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 }}
18 name: "Ubuntu 20.04 GCC",
25 name: "MacOS 12 Apple Clang",
32 name: "Windows 2022 Mingw-w64 GCC x86_64",
37 msys_env: 'x86_64-gcc',
46 - binaries: x86-64-avx2
47 config: {os: macos-12}
50 working-directory: src
51 shell: ${{ matrix.config.shell }}
53 - uses: actions/checkout@v3
57 - name: Download required linux packages
58 if: runner.os == 'Linux'
62 - name: Setup msys and install required packages
63 if: runner.os == 'Windows'
64 uses: msys2/setup-msys2@v2
66 msystem: ${{ matrix.config.msys_sys }}
67 install: mingw-w64-${{ matrix.config.msys_env }} make
69 - name: Download the used network from the fishtest framework
73 - name: Check compiler
77 - name: Test help target
81 # Compile profile guided builds
83 - name: Compile ${{ matrix.binaries }} build
86 make -j2 profile-build ARCH=$BINARY COMP=$COMP
87 make strip ARCH=$BINARY COMP=$COMP
88 mv ./stockfish$EXT ../stockfish-$OS-$BINARY$EXT
90 - name: Remove non src files
91 run: rm -f *.o .depend *.nnue
93 - name: Create tar archive.
98 cp stockfish-$OS-$BINARY$EXT stockfish/
99 cp "Top CPU Contributors.txt" stockfish/
100 cp Copying.txt stockfish/
101 cp AUTHORS stockfish/
102 tar -cvf stockfish-$OS-$BINARY.tar stockfish
104 - name: Upload binaries
105 uses: actions/upload-artifact@v3
107 name: stockfish-${{ matrix.config.os }}-${{ matrix.binaries }}
109 stockfish-${{ matrix.config.os }}-${{ matrix.binaries }}.tar