Skip to content

Commit c971b3c

Browse files
committed
updates version number and adds github ci action
1 parent 692a04a commit c971b3c

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/ci-compile.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI C++ Std compliance
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.hpp'
7+
- '**.cpp'
8+
- '**.h'
9+
- '**.c'
10+
- '**CMakeLists.txt'
11+
- '.github/workflows/**'
12+
- 'conanfile.py'
13+
pull_request:
14+
paths:
15+
- '**.hpp'
16+
- '**.cpp'
17+
- '**.h'
18+
- '**.c'
19+
- '**CMakeLists.txt'
20+
- '.github/workflows/**'
21+
- 'conanfile.py'
22+
23+
jobs:
24+
build-and-test:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
cpp_std: [11, 14, 17, 20]
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Update submodules
33+
run: git submodule update --init --recursive
34+
35+
- name: Install dependencies
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y g++ python3-pip cmake
39+
pip3 install conan
40+
cmake --version
41+
42+
- name: Configure
43+
run: cmake --preset Debug -B build -DCMAKE_CXX_STANDARD=${{ matrix.cpp_std }}
44+
45+
- name: Build
46+
run: cmake --build build -j
47+
48+
- name: Run smoke test
49+
run: ./build/riscv-sim -h

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
44
###############################################################################
55
#
66
###############################################################################
7-
project(dbt-rise-riscv VERSION 2.0.0 LANGUAGES C CXX)
7+
project(dbt-rise-riscv VERSION 2.1.0 LANGUAGES C CXX)
88

99
option(UPDATE_EXTERNAL_PROJECT "Whether to pull changes in external projects" ON)
1010

0 commit comments

Comments
 (0)