From ebf221cbd3b001d40bf2ff53c404ffe83c3db309 Mon Sep 17 00:00:00 2001 From: Matej Petrlik Date: Wed, 25 Oct 2023 15:26:46 +0200 Subject: [PATCH] added workflow --- .github/workflows/ros_build_test.yml | 25 ++++++++++++++++++++++ .github/workflows/ros_package_build.yml | 22 +++++++++++++++++++ CMakeLists.txt | 18 ++++++++++++++++ LICENSE | 28 +++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 .github/workflows/ros_build_test.yml create mode 100644 .github/workflows/ros_package_build.yml create mode 100644 LICENSE diff --git a/.github/workflows/ros_build_test.yml b/.github/workflows/ros_build_test.yml new file mode 100644 index 0000000..28768ce --- /dev/null +++ b/.github/workflows/ros_build_test.yml @@ -0,0 +1,25 @@ +name: ros_build_test + +on: + + push: + branches: [ devel ] + + paths-ignore: + - '**/README.md' + + pull_request: + branches: [ master ] + + workflow_dispatch: + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + + build: + uses: ctu-mrs/ci_scripts/.github/workflows/ros_build_test.yml@master + secrets: + PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }} diff --git a/.github/workflows/ros_package_build.yml b/.github/workflows/ros_package_build.yml new file mode 100644 index 0000000..d17da2a --- /dev/null +++ b/.github/workflows/ros_package_build.yml @@ -0,0 +1,22 @@ +name: ros_package_build + +on: + + push: + branches: [ master ] + + paths-ignore: + - '**/README.md' + + workflow_dispatch: + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + + build: + uses: ctu-mrs/ci_scripts/.github/workflows/ros_package_build.yml@master + secrets: + PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }} diff --git a/CMakeLists.txt b/CMakeLists.txt index 64ad9cb..bb0d50c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,3 +36,21 @@ add_library(VinsRepublisher src/VinsRepublisher.cpp) target_link_libraries(VinsRepublisher ${catkin_LIBRARIES} ) + +## -------------------------------------------------------------- +## | Install | +## -------------------------------------------------------------- + +install(TARGETS ${LIBRARIES} + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION} + ) + +install(DIRECTORY config launch + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) + +install(FILES plugins.xml + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1d04bbf --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2023, Multi-robot Systems (MRS) group at Czech Technical University in Prague + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.