-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 770 Bytes
/
c-cpp.yml
File metadata and controls
35 lines (31 loc) · 770 Bytes
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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Boost
run: |
sudo add-apt-repository ppa:mhier/libboost-latest -y
sudo apt-get update
sudo apt-get install libboost1.70 libboost1.70-dev -y
- name: Install Catch2
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
- name: configure
run: |
mkdir build
cd build
cmake ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest