-
Notifications
You must be signed in to change notification settings - Fork 39
50 lines (43 loc) · 1.19 KB
/
ci-cppstd.yml
File metadata and controls
50 lines (43 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI C++ Std compliance
on:
push:
paths:
- '**.cpp'
- '**.h'
- '**CMakeLists.txt'
- '.github/workflows/**'
- 'conanfile.py'
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**CMakeLists.txt'
- '.github/workflows/**'
- 'conanfile.py'
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
cpp_std: [14, 17, 20]
steps:
- name: Checkout SystemC-Components
uses: actions/checkout@v6
with:
submodules: true
- name: Cache Conan
uses: actions/cache@v4
with:
path: ~/.conan2
key: conan-${{ runner.os }}-unit-cpp${{ matrix.cpp_std }}-${{ hashFiles('conanfile.py') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++ python3-pip cmake ninja-build
pip3 install -r requirements.txt
- name: Configure
run: cmake --preset Debug -B build -DCMAKE_CXX_STANDARD=${{ matrix.cpp_std }}
- name: Build
run: cmake --build build -j
- name: Run transaction_recording
run: ./build/examples/transaction_recording/transaction_recording