Skip to content

updates ci-compile.yml to include LLVM backend #10

updates ci-compile.yml to include LLVM backend

updates ci-compile.yml to include LLVM backend #10

Workflow file for this run

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: |
echo "WITH_LLVM=1" >> $GITHUB_ENV
cmake --preset Debug -B build -DCMAKE_CXX_STANDARD=${{ matrix.cpp_std }}
- name: Build
run: |
echo "WITH_LLVM=1" >> $GITHUB_ENV
cmake --build build -j
- name: Run smoke test
run: ./build/riscv-sim -h