Add GitHub action to build code using cmake
This commit is contained in:
1 file changed
+31
@@ -0,0 +1,31 @@
|
|||||||
|
name: Build and Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- devel
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: sudo apt-get install cmake qtbase5-dev libavcodec-dev libavformat-dev libavutil-dev libopencv-dev libopencv-video-dev libopencv-contrib-dev
|
||||||
|
|
||||||
|
- name: Build CMake
|
||||||
|
uses: ashutoshvarma/action-cmake-build@v1
|
||||||
|
with:
|
||||||
|
build-dir: ${{ runner.workspace }}/build
|
||||||
|
# will set the CC & CXX for cmake
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
build-type: Release
|
||||||
|
# Extra options pass to cmake while configuring project
|
||||||
|
configure-options: -DBUILD_TESTS=ON -DUSE_WERROR=ON
|
||||||
|
run-test: true
|
||||||
|
#ctest-options: -R mytest
|
||||||
|
# install the build using cmake --install
|
||||||
|
install-build: true
|
||||||
|
# run build using '-j [parallel]' to use multiple threads to build
|
||||||
|
parallel: 14
|
||||||
Reference in new issue
Block a user