feat: add github actions
* feat: add github actions * Update ccpp.yml * build: build and install deb in container * build: clean up
This commit is contained in:
parent
e864d27fbf
commit
433b3c4219
20
.github/workflows/ccpp.yml
vendored
Normal file
20
.github/workflows/ccpp.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user