Skip to content

Commit 15c98a6

Browse files
committed
Added github workflows for dev branch
1 parent c166ff5 commit 15c98a6

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
pull_request:
7+
branches: [dev]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
compiler:
16+
- { cc: gcc-12, cxx: g++-12 }
17+
- { cc: gcc-13, cxx: g++-13 }
18+
- { cc: gcc-14, cxx: g++-14 }
19+
- { cc: clang-16, cxx: clang++-16 }
20+
- { cc: clang-17, cxx: clang++-17 }
21+
- { cc: clang-18, cxx: clang++-18 }
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Configure
27+
env:
28+
CC: ${{ matrix.compiler.cc }}
29+
CXX: ${{ matrix.compiler.cxx }}
30+
run: cmake . -B build -DBUILD_TESTS=ON
31+
32+
- name: Build
33+
run: cmake --build build --target tests
34+
35+
- name: Test
36+
run: ./build/bin/tests ~[EventCounter] ~[Sampler] ~[HardwareInfo]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# perf-cpp: Hardware Performance Monitoring for C++
22
![LGPL-3.0](https://img.shields.io/github/license/jmuehlig/perf-cpp?) ![LinuxKernel->=4.0](https://img.shields.io/badge/Linux_Kernel-%3E%3D4.0-yellow)
3-
![C++17](https://img.shields.io/badge/C++-17-00599C?logo=cplusplus) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/jmuehlig/perf-cpp)
3+
![C++17](https://img.shields.io/badge/C++-17-00599C?logo=cplusplus) [![Build and Test](https://github.com/jmuehlig/perf-cpp/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/jmuehlig/perf-cpp/actions/workflows/build-and-test.yml) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/jmuehlig/perf-cpp)
44

55
[Quick Start](#quick-start) | [How to Build](#building) | [Documentation](https://jmuehlig.github.io/perf-cpp) | [System Requirements](#system-requirements)
66

0 commit comments

Comments
 (0)