-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (41 loc) · 1.07 KB
/
cmake.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: C++
on:
push:
branches-ignore:
- '*-from-video'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
jobs:
build-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build & Test
uses: ashutoshvarma/action-cmake-build@master
with:
submodule-update: true
source-dir: ${{github.workspace}}/cpp
build-dir: ${{github.workspace}}/build
cc: gcc
cxx: g++
build-type: Release
run-test: true
ctest-options: "--output-on-failure"
install-build: false
build-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build & Test
uses: ashutoshvarma/action-cmake-build@master
with:
submodule-update: true
source-dir: ${{github.workspace}}/cpp
build-dir: ${{github.workspace}}/build
cc: clang
cxx: clang++
build-type: Release
run-test: true
ctest-options: "--output-on-failure"
install-build: false