Changes to update the build instructions #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check Clang Format | |
uses: DoozyX/[email protected] | |
with: | |
source: '.' | |
exclude: './third_party' | |
extensions: 'h,cpp' | |
clangFormatVersion: 10 | |
style: file | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update | |
run: sudo apt update | |
- name: Install dependencies | |
run: sudo apt install -y libopencv-dev libyaml-cpp-dev libprotobuf-dev libprotoc-dev protobuf-compiler | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make -j4 | |
- name: Test | |
run: | | |
cd build | |
ctest --output-on-failure |