-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 830 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
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Build
run: |
mkdir build
cd build
cmake .. 2>&1 | tee cmake_output.log
make 2>&1 | tee make_output.log
- name: Run tests
run: |
cd build
ctest 2>&1 | tee ctest_output.log
- name: Show build logs
if: always()
run: |
echo "CMake Output:"
cat build/cmake_output.log
echo "Make Output:"
cat build/make_output.log
echo "CTest Output:"
cat build/ctest_output.log