Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit f8d8b05

Browse files
committed
Create cmake.yml
Signed-off-by: Mart Somermaa <[email protected]>
1 parent 5064e12 commit f8d8b05

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CMake
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
BUILD_TYPE: RelWithDebInfo
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: mrts/qt-cmake-gtest-valgrind-ubuntu:v1.8
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
18+
- name: Create build directory
19+
run: mkdir build
20+
21+
- name: Configure CMake
22+
working-directory: ${{github.workspace}}/build
23+
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
24+
25+
- name: Build
26+
working-directory: ${{github.workspace}}/build
27+
run: cmake --build . --config $BUILD_TYPE
28+
29+
- name: Test
30+
working-directory: ${{github.workspace}}/build
31+
run: ctest -V -C $BUILD_TYPE

0 commit comments

Comments
 (0)