Skip to content

Commit 77c8f1e

Browse files
author
Raghuveer Devulapalli
committed
CI: Splits tests and disable benchmarks
1 parent ed6c409 commit 77c8f1e

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

.github/workflows/c-cpp.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests and benchmarks
1+
name: Build and run tests
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
BasicBuildAndTest:
10+
ICX:
1111

1212
runs-on: ubuntu-latest
1313

@@ -17,7 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
sudo apt update
20-
sudo apt -y install g++-12 g++-10 libgtest-dev meson curl git cmake
20+
sudo apt -y install g++-10 libgtest-dev meson curl git cmake
2121
2222
- name: Install google benchmarks
2323
run: |
@@ -33,31 +33,58 @@ jobs:
3333
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
3434
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
3535
36-
- name: Build with gcc-10
36+
- name: Build
3737
env:
3838
CXX: g++-10
3939
run: |
4040
make clean
41-
meson setup --warnlevel 0 --buildtype plain builddir
41+
meson setup --warnlevel 2 --werror --buildtype plain builddir
4242
cd builddir
4343
ninja
4444
45-
- name: Run test suite on SKX
46-
run: sde -skx -- ./builddir/testexe
45+
- name: Run test suite on ICX
46+
run: sde -icx -- ./builddir/testexe
4747

48-
- name: Build with gcc-12
48+
SPR:
49+
50+
runs-on: ubuntu-latest
51+
52+
steps:
53+
- uses: actions/checkout@v3
54+
55+
- name: Install dependencies
56+
run: |
57+
sudo apt update
58+
sudo apt -y install g++-12 libgtest-dev meson curl git cmake
59+
60+
- name: Install google benchmarks
61+
run: |
62+
git clone https://github.com/google/benchmark.git
63+
cd benchmark
64+
cmake -E make_directory "build"
65+
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
66+
sudo cmake --build "build" --config Release --target install
67+
68+
- name: Install Intel SDE
69+
run: |
70+
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
71+
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
72+
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
73+
74+
- name: Build
4975
env:
5076
CXX: g++-12
5177
run: |
5278
make clean
53-
meson setup --warnlevel 0 --buildtype plain builddir
79+
meson setup --warnlevel 2 --werror --buildtype plain builddir
5480
cd builddir
5581
ninja
5682
57-
- name: Run test suite on SPR
58-
run: sde -spr -- ./builddir/testexe
83+
- name: Run _Float16 test suite on SPR
84+
run: sde -spr -- ./builddir/testexe --gtest_filter="*float16*"
5985

6086
compare-benchmarks-with-main:
87+
if: ${{ false }} # disable for now
6188

6289
runs-on: ubuntu-latest
6390

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ benchexe: $(BENCHOBJS) $(UTILOBJS)
7575

7676
.PHONY: meson
7777
meson:
78-
meson setup --warnlevel 2 --buildtype plain builddir
78+
meson setup --warnlevel 2 --werror --buildtype plain builddir
7979
cd builddir && ninja
8080

8181
.PHONY: clean

0 commit comments

Comments
 (0)