Skip to content

Commit

Permalink
Linter action with LibreCores CI
Browse files Browse the repository at this point in the history
This adds a beta Github action that is run on pushes and pull
requests. It automatically annotates the sources with linter issues.

Nothing extra is needed beyond merging.

Signed-off-by: Stefan Wallentowitz <[email protected]>
  • Loading branch information
wallento committed Jun 19, 2020
1 parent 37fd423 commit 86f42f5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
name: Linter
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 }}

0 comments on commit 86f42f5

Please sign in to comment.