-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (42 loc) · 1.01 KB
/
ci-compile.yml
File metadata and controls
49 lines (42 loc) · 1.01 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
name: CI C++ Std compliance
on:
push:
paths:
- '**.hpp'
- '**.cpp'
- '**.h'
- '**.c'
- '**CMakeLists.txt'
- '.github/workflows/**'
- 'conanfile.py'
pull_request:
paths:
- '**.hpp'
- '**.cpp'
- '**.h'
- '**.c'
- '**CMakeLists.txt'
- '.github/workflows/**'
- 'conanfile.py'
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
cpp_std: [17, 20]
steps:
- uses: actions/checkout@v4
- name: Update submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++ python3-pip cmake
pip3 install conan
cmake --version
- name: Configure
run: cmake --preset Debug -B build -DCMAKE_CXX_STANDARD=${{ matrix.cpp_std }}
- name: Build
run: cmake --build build -j
- name: Run smoke test
run: ./build/riscv-sim -h