2020-03-23 09:38:47 +01:00
|
|
|
name: CMake
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: build examples and tests
|
|
|
|
run: rm -rf build || true && mkdir build && cd build && cmake .. -DLIBMBUS_BUILD_EXAMPLES=ON -DLIBMBUS_BUILD_TESTS=ON && cmake --build . -j
|
|
|
|
|
|
|
|
debian:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: build debian package
|
|
|
|
run: rm -rf build || true && mkdir build && cd build && cmake .. -DLIBMBUS_PACKAGE_DEB=ON && cpack .. && sudo dpkg -i *.deb && ls /usr/lib
|
2020-03-23 13:41:26 +01:00
|
|
|
|
|
|
|
doc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-03-23 13:54:57 +01:00
|
|
|
- name: build doxygen documentation
|
|
|
|
run: sudo apt install -y doxygen
|
|
|
|
|
2020-03-23 13:41:26 +01:00
|
|
|
- name: build doxygen documentation
|
|
|
|
run: rm -rf build || true && mkdir build && cd build && cmake .. -DLIBMBUS_BUILD_DOCS=ON && cmake --build . --target doc
|
|
|
|
|