From 1076e3d6858f716efb20cb3780035f53d0737aec 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19289cfd0..1639f64b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,13 @@ jobs: - name: Install dependencies run: | sudo apt install srecord + sudo apt install verilator libelf-dev sudo mkdir -p /tools/riscv sudo chmod 777 /tools/riscv curl -Ls -o rv32-toolchain.tar.xz "https://github.com/lowRISC/lowrisc-toolchains/releases/download/20230427-1/lowrisc-toolchain-gcc-rv32imcb-20230427-1.tar.xz" sudo tar -C /tools/riscv -xf rv32-toolchain.tar.xz --strip-components=1 echo "/tools/riscv/bin" >> $GITHUB_PATH + pip install -r python-requirements.txt - name: Clang lint run: find -name "*.[cc|c|h]" -exec clang-format -n {} \; @@ -44,3 +46,7 @@ jobs: make working-directory: sw/legacy/build + - name: Build Verilator simulator + run: | + fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:sonata:system --verilator_options="+define+RVFI" +