-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (54 loc) · 1.43 KB
/
ubuntu-unit.yml
File metadata and controls
64 lines (54 loc) · 1.43 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Ubuntu unit
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
build-and-test:
name: Ubuntu unit ${{matrix.CC}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-7
CXX: g++-7
compiler: gcc-7 g++-7
- CC: gcc-8
CXX: g++-8
compiler: gcc-8 g++-8
- CC: gcc-9
CXX: g++-9
compiler: gcc-9 g++-9
- CC: clang-6.0
CXX: clang++-6.0
compiler: clang-6.0
- CC: clang-8
CXX: clang++-8
compiler: clang-8
- CC: clang-9
CXX: clang++-9
compiler: clang-9
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt install libcurl4-openssl-dev
- name: install compiler
run: sudo apt install ${{matrix.compiler}}
- name: make build directory
run: mkdir build_dir
- name: cmake configure
run: cmake .. -DCMAKE_BUILD_TYPE=Debug -Dtrase_BUILD_OPENGL:BOOL=FALSE
working-directory: build_dir
env:
CC: ${{matrix.CC}}
CXX: ${{matrix.CXX}}
- name: cmake build
run: cmake --build . --parallel 2
working-directory: build_dir
- name: cmake test
run: ctest -j2 --output-on-failure
working-directory: build_dir