ci: Add riscv-formal job

Checkout YosysHQ/riscv-formal and run `make checks` for picorv32.
This commit is contained in:
Krystine Sherwin 2024-03-16 15:39:40 +13:00
parent 6881fa5158
commit 4d33229786
No known key found for this signature in database
1 changed files with 32 additions and 0 deletions

View File

@ -13,3 +13,35 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: yosys --version
riscv-formal:
runs-on: ubuntu-latest
steps:
- name: Checkout picorv32.v
uses: actions/checkout@v4
with:
sparse-checkout: |
picorv32.v
sparse-checkout-cone-mode: false
- name: Checkout riscv-formal
uses: actions/checkout@v4
with:
repository: YosysHQ/riscv-formal
path: riscv-formal
- name: cp picorv32.v
run: |
cp picorv32.v -t riscv-formal/cores/picorv32
- uses: YosysHQ/setup-oss-cad-suite@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: make checks
run: |
cd riscv-formal/cores/picorv32
make checks -j$(nproc)
- name: make check
run: |
cd riscv-formal/cores/picorv32
make check