-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (29 loc) · 941 Bytes
/
ci.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
name: C/C++ CI
on:
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Make build directory
run: mkdir build
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v1.13.1
with:
cmake-version: '3.23.x'
- name: Run CMake
run: cmake ../ -DCMAKE_BUILD_TYPE=Debug -DCARE_ENABLE_SUBMODULE_TESTS=Off -DCARE_ENABLE_SUBMODULE_BENCHMARKS=Off -DCARE_ENABLE_SUBMODULE_EXAMPLES=Off -DCARE_ENABLE_SUBMODULE_EXERCISES=Off -DCARE_ENABLE_SUBMODULE_DOCS=Off
working-directory: build
- name: Run make
run: make -j
working-directory: build
- name: Run tests
run: make test CTEST_OUTPUT_ON_FAILURE=TRUE
working-directory: build
- name: Clean up
run: rm -rf build