Skip to content

Commit

Permalink
CI: Splits tests and disable benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
r-devulap committed Sep 6, 2023
1 parent ed6c409 commit 77c8f1e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 12 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests and benchmarks
name: Build and run tests

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ "main" ]

jobs:
BasicBuildAndTest:
ICX:

runs-on: ubuntu-latest

Expand All @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install g++-12 g++-10 libgtest-dev meson curl git cmake
sudo apt -y install g++-10 libgtest-dev meson curl git cmake
- name: Install google benchmarks
run: |
Expand All @@ -33,31 +33,58 @@ jobs:
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 with gcc-10
- name: Build
env:
CXX: g++-10
run: |
make clean
meson setup --warnlevel 0 --buildtype plain builddir
meson setup --warnlevel 2 --werror --buildtype plain builddir
cd builddir
ninja
- name: Run test suite on SKX
run: sde -skx -- ./builddir/testexe
- name: Run test suite on ICX
run: sde -icx -- ./builddir/testexe

- name: Build with gcc-12
SPR:

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 0 --buildtype plain builddir
meson setup --warnlevel 2 --werror --buildtype plain builddir
cd builddir
ninja
- name: Run test suite on SPR
run: sde -spr -- ./builddir/testexe
- name: Run _Float16 test suite on SPR
run: sde -spr -- ./builddir/testexe --gtest_filter="*float16*"

compare-benchmarks-with-main:
if: ${{ false }} # disable for now

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ benchexe: $(BENCHOBJS) $(UTILOBJS)

.PHONY: meson
meson:
meson setup --warnlevel 2 --buildtype plain builddir
meson setup --warnlevel 2 --werror --buildtype plain builddir
cd builddir && ninja

.PHONY: clean
Expand Down

0 comments on commit 77c8f1e

Please sign in to comment.