]> git.sesse.net Git - stockfish/blobdiff - .github/workflows/stockfish_binaries.yml
Generate binaries for more advanced architectures
[stockfish] / .github / workflows / stockfish_binaries.yml
index 0a53cb03a99bb4b988cbd8c25a1dd2a8168aeae2..fa330974dd2e4f84de770ae62cbac04a036558de 100644 (file)
@@ -9,6 +9,7 @@ jobs:
       COMPILER: ${{ matrix.config.compiler }}
       COMP: ${{ matrix.config.comp }}
       EXT: ${{ matrix.config.ext }}
+      SDE: ${{ matrix.config.sde }}
       NAME: ${{ matrix.config.simple_name }}
       BINARY: ${{ matrix.binaries }}
     strategy:
@@ -19,14 +20,15 @@ jobs:
             simple_name: ubuntu
             compiler: g++
             comp: gcc
-            shell: bash {0}
+            shell: bash
             archive_ext: tar
+            sde: /home/runner/work/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.14.0-2022-10-25-lin/sde -future
           - name: MacOS 12 Apple Clang
             os: macos-12
             simple_name: macos
             compiler: clang++
             comp: clang
-            shell: bash {0}
+            shell: bash
             archive_ext: tar
           - name: Windows 2022 Mingw-w64 GCC x86_64
             os: windows-2022
@@ -37,14 +39,28 @@ jobs:
             msys_env: x86_64-gcc
             shell: msys2 {0}
             ext: .exe
+            sde: /d/a/Stockfish/Stockfish/.output/sde-temp-files/sde-external-9.14.0-2022-10-25-win/sde.exe -future
             archive_ext: zip
         binaries:
           - x86-64
           - x86-64-modern
           - x86-64-avx2
+          - x86-64-bmi2
+          # - x86-64-avxvnni needs more recent gcc
+          - x86-64-avx512
+          - x86-64-vnni256
+          - x86-64-vnni512
         exclude:
-          - binaries: x86-64-avx2
-            config: {os: macos-12}
+          - binaries: x86-64-bmi2
+            config: { os: macos-12 }
+          #- binaries: x86-64-avxvnni
+          #  config: { os: macos-12 }
+          - binaries: x86-64-avx512
+            config: { os: macos-12 }
+          - binaries: x86-64-vnni256
+            config: { os: macos-12 }
+          - binaries: x86-64-vnni512
+            config: { os: macos-12 }
     defaults:
       run:
         working-directory: src
@@ -65,6 +81,13 @@ jobs:
           msystem: ${{ matrix.config.msys_sys }}
           install: mingw-w64-${{ matrix.config.msys_env }} make git zip
 
+      - name: Download SDE package
+        if: runner.os == 'Linux' || runner.os == 'Windows'
+        uses: petarpetrovt/setup-sde@v2.1
+        with:
+          environmentVariableName: SDE_DIR
+          sdeVersion: 9.14.0
+
       - name: Download the used network from the fishtest framework
         run: make net
 
@@ -81,7 +104,7 @@ jobs:
 
       - name: Compile ${{ matrix.binaries }} build
         run: |
-          make -j2 profile-build ARCH=$BINARY COMP=$COMP
+          make -j2 profile-build ARCH=$BINARY COMP=$COMP SDE_PATH="$SDE"
           make strip ARCH=$BINARY COMP=$COMP
           mv ./stockfish$EXT ../stockfish-$NAME-$BINARY$EXT
 
@@ -165,4 +188,3 @@ jobs:
           tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }}
           prerelease: true
           files: stockfish-${{ matrix.config.simple_name }}-${{ matrix.binaries }}.${{ matrix.config.archive_ext }}
-