From 4d3322978679c74a89350b73b955e44b22180a3f Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Sat, 16 Mar 2024 15:39:40 +1300 Subject: [PATCH] ci: Add riscv-formal job Checkout YosysHQ/riscv-formal and run `make checks` for picorv32. --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fac8e90..11cf5e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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