-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (30 loc) · 1.11 KB
/
unittests.yml
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
36
37
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{github.workspace}}/tests
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y ninja-build ccache cmake libglew-dev libglfw3-dev g++-12-riscv64-linux-gnu
git submodule update --init ${{github.workspace}}/tests/Catch2
git submodule update --init --recursive ${{github.workspace}}/ext/nanogui
git submodule update --init --recursive ${{github.workspace}}/ext/library
git submodule update --init ${{github.workspace}}/ext/libriscv
git submodule update --init ${{github.workspace}}/programs/micro/ext
- name: Configure
run: cmake -B ${{github.workspace}}/tests/build -DCMAKE_BUILD_TYPE=Debug
- name: Build the unittests
run: cmake --build ${{github.workspace}}/tests/build --parallel 4
- name: Run tests
working-directory: ${{github.workspace}}/tests/build
run: ctest --verbose .