Build shared library with runtime ISA dispatch #180
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and run tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
ICX: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt -y install g++-12 libgtest-dev meson curl git cmake | |
- name: Install google benchmarks | |
run: | | |
git clone https://github.com/google/benchmark.git | |
cd benchmark | |
cmake -E make_directory "build" | |
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../ | |
sudo cmake --build "build" --config Release --target install | |
- name: Install Intel SDE | |
run: | | |
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz | |
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/ | |
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde | |
- name: Build | |
env: | |
CXX: g++-12 | |
run: | | |
make clean | |
meson setup --warnlevel 2 --werror --buildtype plain builddir | |
cd builddir | |
ninja | |
- name: Run test suite on SKL | |
run: sde -skl -- ./builddir/testexe | |
- name: Run test suite on SKX | |
run: sde -skx -- ./builddir/testexe | |
- name: Run test suite on TGL | |
run: sde -tgl -- ./builddir/testexe |