mirror of
https://github.com/olofk/serv.git
synced 2026-05-02 14:39:58 +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:
committed by
Olof Kindgren
parent
0519ae4a52
commit
cfb779d3d6
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -33,11 +33,6 @@ jobs:
|
|||||||
cd $SERV/workspace
|
cd $SERV/workspace
|
||||||
fusesoc library add serv $SERV
|
fusesoc library add serv $SERV
|
||||||
|
|
||||||
- name: lint
|
|
||||||
run: |
|
|
||||||
cd $SERV/workspace
|
|
||||||
fusesoc run --target=lint serv
|
|
||||||
|
|
||||||
- name: build servant
|
- name: build servant
|
||||||
run: |
|
run: |
|
||||||
cd $SERV/workspace
|
cd $SERV/workspace
|
||||||
|
|||||||
16
.github/workflows/lint.yml
vendored
Normal file
16
.github/workflows/lint.yml
vendored
Normal 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'
|
||||||
Reference in New Issue
Block a user