Switch to macos 13 for CI

allows for building x86-64-avx2 and x86-64-bmi2 binaries for mac

install coreutils
show hardware capabilities as seen by the compilers
move some tests from sse41 to avx2 as platforms support it

closes https://github.com/official-stockfish/Stockfish/pull/4692

No functional change
This commit is contained in:
Joost VandeVondele
2023-07-16 18:14:38 +02:00
parent d70a905ce3
commit 34d0c1b527
3 changed files with 36 additions and 28 deletions
+23 -15
View File
@@ -23,8 +23,8 @@ jobs:
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
- name: MacOS 13 Apple Clang
os: macos-13
simple_name: macos
compiler: clang++
comp: clang
@@ -52,24 +52,20 @@ jobs:
- x86-64-vnni256
- x86-64-vnni512
exclude:
- binaries: x86-32
config: { os: macos-12 }
- binaries: x86-32
config: { os: windows-2022}
- 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-avxvnni
config: { ubuntu-20.04 }
- binaries: x86-32
config: { os: windows-2022}
- binaries: x86-32
config: { os: macos-13 }
- binaries: x86-64-avxvnni
config: { os: macos-13 }
- binaries: x86-64-avx512
config: { os: macos-12 }
config: { os: macos-13 }
- binaries: x86-64-vnni256
config: { os: macos-12 }
config: { os: macos-13 }
- binaries: x86-64-vnni512
config: { os: macos-12 }
config: { os: macos-13 }
defaults:
run:
working-directory: src
@@ -85,6 +81,10 @@ jobs:
sudo apt update
sudo apt install g++-multilib g++-11-multilib
- name: Download required macOS packages
if: runner.os == 'macOS'
run: brew install coreutils
- name: Install fixed GCC on Linux
if: runner.os == 'Linux'
uses: egor-tensin/setup-gcc@v1
@@ -118,6 +118,14 @@ jobs:
- name: Check compiler
run: $COMPILER -v
- name: Show g++ cpu info
if: runner.os != 'macOS'
run: g++ -Q -march=native --help=target
- name: Show clang++ cpu info
if: runner.os == 'macOS'
run: clang++ -E - -march=native -###
- name: Test help target
run: make help