-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.04 KB
/
main.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
name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
c-compiler: [gcc-10, clang]
cxx-compiler: [g++-10, clang++]
cmake-build-type: [DEBUG, RELEASE]
exclude:
- { c-compiler: clang, cxx-compiler: g++-10 }
- { c-compiler: gcc-10, cxx-compiler: clang++ }
steps:
- name: Install packages
run: sudo apt install gcc-10 g++-10 clang libunwind-dev libdwarf-dev libelf-dev
- uses: actions/checkout@v2
- name: build
uses: lukka/[email protected]
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeBuildType: ${{ matrix.cmake-build.type }}
buildDirectory: ${{ github.workspace }}/build
env:
CC: ${{ matrix.c-compiler }}
CXX: ${{ matrix.cxx-compiler }}
- name: test
working-directory: ${{ github.workspace }}/build
run: ctest -VV