fix: fix cacheL1 and add cacheL1 tests #7
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
| 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 |