-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (30 loc) · 1 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Linting
on: [push, pull_request]
jobs:
lint_nox_sim:
name: Run lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install Verilator
run: |
sudo apt update -y
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache -fy
sudo apt-get install libunwind-dev libgoogle-perftools-dev numactl perl-doc -fy
sudo apt-get install libfl2 -fy # Ubuntu only (ignore if gives error)
sudo apt-get install libfl-dev -fy # Ubuntu only (ignore if gives error)
sudo apt-get install zlib1g zlib1g-dev -fy # Ubuntu only (ignore if gives error)
sudo apt-get install lcov -fy
git clone https://github.com/verilator/verilator.git
cd verilator
git checkout stable
autoconf
./configure
make -j $(nproc)
sudo make install
- name: Run lintT
uses: actions/checkout@v3
- run: |
make RUN_CMD="" lint