module(l1_data_cache): Added test and fixed issues with module #599
Workflow file for this run
This file contains 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
name: Verilator-Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: archlinux:base-devel | |
steps: | |
- name: Install Build Dependencies | |
run: | | |
pacman --noconfirm -Syu | |
pacman --noconfirm -S cmake ninja git curl zip unzip tar verilator | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake . -G Ninja -DNYU_BUILD_TESTS=ON | |
- name: Build | |
run: cmake --build . --config Release | |
- name: Test & Generate Coverage | |
run: | | |
ctest -C Release --output-on-failure | |
sed -i -e '/\/share\//d' -e '/\/dv\//d' dv/*.dat | |
verilator_coverage -write-info coverage.txt dv/*.dat | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.txt | |
fail_ci_if_error: true |