Refactor build system #248
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: Linux CI | |
on: | |
pull_request: | |
push: | |
branches: master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Prepare enviroment | |
run: | | |
sudo apt update | |
sudo apt install -y \ | |
cmake ninja-build clang \ | |
libavahi-compat-libdnssd-dev \ | |
libssl-dev python3-pip | |
sudo pip3 install cpplint | |
- name: Build & Install | |
run: | | |
mkdir build | |
cd build | |
cmake -G Ninja .. | |
ninja | |
sudo ninja install | |
- name: Run unit tests | |
run: | | |
cd build | |
./homekit-bridge \ | |
-d tests_scripts \ | |
test |