From 88c1fb08207b6ce00ae4b728fbd66bf11382feab 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/verilator.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/verilator.yml diff --git a/.github/workflows/verilator.yml b/.github/workflows/verilator.yml new file mode 100644 index 000000000..0390cd116 --- /dev/null +++ b/.github/workflows/verilator.yml @@ -0,0 +1,24 @@ +name: Verilator + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + 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 simulator + run: | + fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:sonata:system --verilator_options="+define+RVFI" +