add switch dump_include_en #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestVerilatorDev | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10","3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install build pre-requisites | |
run: | | |
sudo apt update | |
sudo apt install gcc-9 gcc-10 | |
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache | |
sudo apt-get install numactl perl-doc # libgoogle-perftools-dev | |
sudo apt-get install libfl2 # Ubuntu only (ignore if gives error) | |
sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error) | |
# sudo apt-get install zlibc zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) | |
- name: Install verilator from github | |
run: | | |
git clone https://github.com/verilator/verilator | |
# Every time you need to build: | |
# unsetenv VERILATOR_ROOT # For csh; ignore error if on bash | |
unset VERILATOR_ROOT # For bash | |
cd verilator | |
git pull # Make sure git repository is up-to-date | |
git tag # See what versions exist | |
git checkout master # Use development branch (e.g. recent bug fixes) | |
#git checkout stable # Use most recent stable release | |
#git checkout v{version} # Switch to specified release version | |
autoconf # Create ./configure script | |
./configure # Configure and create Makefile | |
make -j `nproc` # Build Verilator itself (if error, try just 'make') | |
# sudo make install | |
set VERILATOR_ROOT=`pwd` | |
set PATH=$PATH:$VERILATOR_ROOT/bin | |
cd .. | |
- name: check verilator version | |
run: | | |
# ls ./verilator | |
# ls ./verilator/bin | |
# which verilator | |
verilator --version | |
- name: check gcc version | |
run: | | |
gcc --version | |
- name: test | |
run: | | |
cd ./test | |
python ./test.py -k verilator |