Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter action with LibreCores CI #960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: [push, pull_request]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a license header here?


jobs:
lint:
runs-on: ubuntu-latest
name: Linter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: Linter
name: RTL lint with Verilator

strategy:
matrix:
config: ['small']
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Test and display fusesoc config for ${{ matrix.config }}
id: config_opts
run: echo "::set-output name=options::$(./util/ibex_config.py ${{ matrix.config }} fusesoc_opts)"
- name: Lint Verilog source files with Verilator for ${{ matrix.config }}
uses: librecores/ci-fusesoc-action@master
with:
command: 'run'
core: 'lowrisc:ibex:ibex_core_tracing'
target: 'lint'
tool: 'verilator'
core-arguments: ${{ steps.config_opts.outputs.options }}
pre-run-command: pip3 install -r python-requirements.txt