diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19289cfd0..1c5f0e9db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ env: CMAKE_BUILD_TYPE: Release jobs: - build: + software: runs-on: ubuntu-latest steps: @@ -44,3 +44,18 @@ jobs: make working-directory: sw/legacy/build + simulator: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt install verilator libelf-dev + pip install -r python-requirements.txt + + - name: Build Verilator simulator + run: | + fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:sonata:system --verilator_options="+define+RVFI" +