File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : C/C++ CI ubuntu-latest
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Install dependencies
18+ run : |
19+ sudo apt update
20+ sudo apt -y install g++-12 libgtest-dev meson curl git cmake
21+
22+ - name : Install google benchmarks
23+ run : |
24+ git clone https://github.com/google/benchmark.git
25+ cd benchmark
26+ cmake -E make_directory "build"
27+ cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../
28+ sudo cmake --build "build" --config Release --target install
29+
30+ - name : Install Intel SDE
31+ run : |
32+ curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
33+ mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
34+ sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
35+
36+ - name : make
37+ env :
38+ CXX : g++-12
39+ run : make meson
40+
41+ - name : Run test suite
42+ run : ./builddir/testexe
43+
44+ - name : Run test suite on Intel SDE
45+ run : sde -spr -- ./builddir/testexe
46+
You can’t perform that action at this time.
0 commit comments