From c834e7074861bc159b95847a05fbf8a5599dd1f7 Mon Sep 17 00:00:00 2001 From: Marno van der Maas Date: Thu, 16 May 2024 12:30:09 +0100 Subject: [PATCH] Add Verilator build as action --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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" +