-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 934 Bytes
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 -DCMAKE_BUILD_TYPE=Release -DNYU_BUILD_TESTS=ON
- name: Build
run: cmake --build .
- 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:
files: ./coverage.txt
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}