-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (39 loc) · 986 Bytes
/
unit_test.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
38
39
40
41
42
43
44
name: CMakeTest Unit Tests
on:
pull_request:
branches:
- master
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
cmake: [3.14.7, latest, latestrc]
env:
cmake_version: ${{ matrix.cmake }}
os: Linux-x86_64
steps:
- uses: actions/checkout@v1
- name: Get latest CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: ${{ env.cmake_version }}
- name: Check CMake and CTest Versions
run: |
cmake --version
ctest --version
- name: Configure Project
run: |
cmake -H. -Bbuild -DBUILD_TESTING=ON
- name: Run Unit Tests
run: |
cd build
ctest -j 2 --output-on-failure
docs_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
repo-token: "${{ secrets.GITHUB_TOKEN }}"