From ad4a0dbf2332bae426bffbe5b582863a1a890636 Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Sun, 1 Oct 2023 22:39:22 +0200 Subject: [PATCH] Add CI action to run basic testbench --- .github/workflows/sim.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sim.yml diff --git a/.github/workflows/sim.yml b/.github/workflows/sim.yml new file mode 100644 index 0000000..8411cc7 --- /dev/null +++ b/.github/workflows/sim.yml @@ -0,0 +1,21 @@ +name: Run basic testbench + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + name: Basic testbench + env: + REPO : VeeRwolf + VLNV : veerwolf + steps: + - name: Checkout repo + uses: actions/checkout@v3 + with: + path: VeeRwolf + - run: sudo apt install verilator + - run: pip3 install fusesoc + - run: fusesoc library add fusesoc-cores https://github.com/fusesoc/fusesoc-cores + - run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO + - run: fusesoc run --target=sim $VLNV --timeout=20000