Skip to content

Commit 35dd7eb

Browse files
author
Raghuveer Devulapalli
authored
Merge pull request #24 from r-devulap/CI
Create .github/workflows/c-cpp.yml
2 parents 98f4b33 + c9f6433 commit 35dd7eb

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+

0 commit comments

Comments
 (0)