-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (28 loc) · 912 Bytes
/
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v1
- name: Install Qt
uses: jurplel/[email protected]
- name: run-cmake
uses: lukka/[email protected]
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
buildDirectory: '${{ runner.workspace }}/build'
cmakeAppendedArgs: '-GNinja '
- name: Build tests
working-directory: ${{ runner.workspace }}/build
run: ninja tests
- name: Run tests
working-directory: ${{ runner.workspace }}/build
run: ninja test