Fix leftover cases #471
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2021 OpenHW Group | |
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # Run functional regression checks | |
| name: ci | |
| on: [push, pull_request] | |
| jobs: | |
| run-hwpe-tests: | |
| name: run-hwpe-tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| env: | |
| N_PROC: 8 | |
| Target: verilator | |
| REDMULE_COMPLEX: 0 | |
| Verilator: verilator | |
| VERILATOR_VERSION: "5.046" | |
| CCACHE_BASEDIR: ${{ github.workspace }} | |
| CCACHE_COMPILERCHECK: content | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up ccache | |
| uses: hendrikmuhs/ccache-action@v1 | |
| with: | |
| key: ${{ runner.os }}-verilator-${{ env.VERILATOR_VERSION }} | |
| max-size: 2G | |
| - name: Install Verilator (prebuilt) | |
| uses: veryl-lang/setup-verilator@v1 | |
| with: | |
| version: ${{ env.VERILATOR_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.3.2 | |
| - name: Install required tools | |
| run: | | |
| make riscv32-gcc | |
| make bender | |
| cd golden-model && source setup-py.sh && cd .. | |
| - name: Add installed tools to PATH | |
| run: | | |
| echo "$(pwd)/vendor/install/cargo/bin" >> $GITHUB_PATH | |
| echo "$(pwd)/vendor/install/riscv/bin" >> $GITHUB_PATH | |
| echo "$(pwd)/golden-model/venv/bin" >> $GITHUB_PATH | |
| - name: Build verilator model | |
| run: | | |
| make hw-build target=verilator | |
| - name: Run Tests | |
| run: | | |
| scripts/regression-list.sh | |
| - name: Store benchmark result | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/devel' | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: Execution cycles | |
| tool: customSmallerIsBetter | |
| output-file-path: scripts/perf.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true | |
| # run-complex-tests: | |
| # name: run-complex-tests | |
| # runs-on: ubuntu-latest | |
| # env: | |
| # Target: verilator | |
| # REDMULE_COMPLEX: 1 | |
| # BENDER: ./bender | |
| # needs: | |
| # install-tools | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # submodules: recursive | |
| # - name: Install required tools | |
| # run: | | |
| # make bender | |
| # make riscv32-gcc | |
| # make verilator | |
| # pip3 install numpy | |
| # cd golden-model && source setup-py.sh && cd .. | |
| # - name: Run Tests | |
| # run: | | |
| # source scripts/regression-list.sh | |
| # - name: Upload Simulation Logs | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: simulation-logs | |
| # path: | | |
| # target/sim/**/transcript_* |