Skip to content

Commit abdd61f

Browse files
authored
Create cmake.yml
1 parent 17c0510 commit abdd61f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CMake
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup
20+
run: sudo apt-get install qtbase5-dev
21+
22+
- name: Build
23+
- run: mkdir build && cd build
24+
- run: cmake .. -DBUILD_TESTS=ON && make VERBOSE=1
25+
26+
- name: Test
27+
working-directory: ${{github.workspace}}/build
28+
run: make test CTEST_OUTPUT_ON_FAILURE=1

0 commit comments

Comments
 (0)