mirror of
https://github.com/olofk/serv.git
synced 2026-01-11 23:42:50 +00:00
26 lines
633 B
YAML
26 lines
633 B
YAML
name: Run linter
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
width: [1, 4]
|
|
name: Linter
|
|
env:
|
|
REPO : serv
|
|
VLNV : serv
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: serv
|
|
- run: sudo apt install verilator
|
|
- run: pip3 install fusesoc
|
|
- run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO
|
|
- run: fusesoc run --target=lint $VLNV --W=${{ matrix.width }}
|
|
- run: fusesoc run --target=lint servant --width=${{ matrix.width }}
|
|
- run: fusesoc run --target=lint serving
|