Skip to content

fix: fix cacheL1 and add cacheL1 tests #7

fix: fix cacheL1 and add cacheL1 tests

fix: fix cacheL1 and add cacheL1 tests #7

Workflow file for this run

name: Codecov
on:
push:
branches: ["main"]
paths:
- ".github/workflows/codecov.yml"
- "CMakeLists.txt"
- "tests/CMakeLists.txt"
- "runAllTests.sh"
- "src/**/*.sv"
- "tests/core_test*.cpp"
- "tests/*_test.hpp"
- "tests/common.hpp"
- "tests/test.cpp"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codecov-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
ninja-build \
verilator \
libgtest-dev
- name: Configure
run: cmake -B build -G Ninja -DODMIPS_BUILD_SIMULATIONS=OFF .
- name: Build tests
run: cmake --build build --target allTests -j "$(nproc)"
- name: Run tests
run: DUMP_COV=1 ./runAllTests.sh
- name: Show coverage outputs
run: |
ls -lh coverage.info
find ./build/tests/logs -type f -name "*.dat" -print | sort | head -n 20
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.info
verbose: true