From c7721c4b93d0e460b69801ad9ebe0f382be09277 Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Wed, 15 Sep 2021 15:27:49 +0200 Subject: [PATCH] ci: build and install latest verilator Signed-off-by: Alessandro Comodi --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6732a3c..734e1db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Setup CCache + uses: hendrikmuhs/ccache-action@v1 + # Install Tools - name: Install Tools run: | sudo apt-get install wget build-essential python3 ninja-build - sudo apt-get install verilator libevent-dev libjson-c-dev + sudo apt-get install libevent-dev libjson-c-dev flex bison + sudo apt-get install libfl-dev libfl2 zlibc zlib1g-dev pip3 install setuptools pip3 install requests pip3 install pexpect @@ -34,6 +38,16 @@ jobs: sudo mkdir /usr/local/riscv sudo cp -r $PWD/../riscv64-*/* /usr/local/riscv + - name: Build Verilator + run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" + git clone https://github.com/verilator/verilator + cd verilator + autoconf + ./configure + make -j$(nproc) + sudo make install + # Install Project - name: Install Project run: python3 setup.py develop --user