Skip to content

Commit

Permalink
Move Verilator build to CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
marnovandermaas committed May 17, 2024
1 parent 81494f5 commit 171e9c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ 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
#curl -sSfL https://github.com/lowRISC/lowrisc-toolchains/releases/download/20230427-1/lowrisc-toolchain-gcc-rv32imcb-20230427-1.tar.xz | sudo tar -xzf -C /tools/riscv --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 {} \;
Expand All @@ -45,3 +47,7 @@ jobs:
cd sw/legacy/build
make
- name: Build Verilator simulator
run: |
fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:sonata:system --verilator_options="+define+RVFI"
24 changes: 0 additions & 24 deletions .github/workflows/verilator.yml

This file was deleted.

0 comments on commit 171e9c3

Please sign in to comment.