ci: Add support for github actions

pull/216/merge
Olivier Martin 2021-06-09 17:41:20 +02:00 committed by Olivier Martin
parent d66e268865
commit db44d7a99d
1 changed files with 23 additions and 0 deletions

23
.github/workflows/github-actions.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: gattlib
on: [push]
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev
- run: mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Debug -DGATTLIB_BUILD_DOCS=OFF .. && make
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev doxygen
- run: mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make
build-release-force-dbus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev
- run: mkdir build && pushd build && cmake -DGATTLIB_FORCE_DBUS=TRUE -DCMAKE_BUILD_TYPE=Release -DGATTLIB_BUILD_DOCS=OFF .. && make