1
0
mirror of https://github.com/olofk/serv.git synced 2026-01-11 23:42:50 +00:00

CI Lint with librecores github action linter

Add the librecores linter, that also does proper annotation to the
source code.
This commit is contained in:
Stefan Wallentowitz 2021-04-18 14:23:31 +02:00 committed by Olof Kindgren
parent 0519ae4a52
commit cfb779d3d6
3 changed files with 18 additions and 5 deletions

View File

@ -33,11 +33,6 @@ jobs:
cd $SERV/workspace
fusesoc library add serv $SERV
- name: lint
run: |
cd $SERV/workspace
fusesoc run --target=lint serv
- name: build servant
run: |
cd $SERV/workspace

16
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,16 @@
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
name: Linter
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Lint Verilog source files with Verilator
uses: librecores/ci-fusesoc-action@master
with:
command: 'run'
core: 'serv'
target: 'lint'
tool: 'verilator'

View File

@ -38,6 +38,8 @@ targets:
tools:
verilator:
mode : lint-only
verilator_options:
- "-Wall"
toplevel : serv_rf_top
parameters: