From 77aaf7db9eed2629d76b60b699b448a7bebe1e21 Mon Sep 17 00:00:00 2001 From: Stefan Wallentowitz Date: Sun, 14 Jun 2020 21:16:21 +0200 Subject: [PATCH] Linter action with LibreCores CI 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 --- .github/workflows/lint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..25bc583105 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +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 }} + pre-run-command: pip3 install -r python-requirements.txt