Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
eyr1n committed Aug 18, 2023
0 parents commit 4bb5ce6
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release .deb

on: push

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3

- id: build
uses: tutrobo/ros2-deb-build@master

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ steps.build.outputs.archives }}/*.deb
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.5)

project(casadi_vendor)

find_package(ament_cmake REQUIRED)

include(ExternalProject)
ExternalProject_Add(casadi
GIT_REPOSITORY https://github.com/casadi/casadi.git
GIT_TAG 3.5.5
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/casadi_install
-DWITH_IPOPT=ON
)

install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/casadi_install/
DESTINATION ${CMAKE_INSTALL_PREFIX}
)

ament_export_include_directories(include)
ament_export_libraries(casadi)
ament_package()
20 changes: 20 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>casadi_vendor</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="[email protected]">rin</maintainer>
<license>TODO: License declaration</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<build_depend>gfortran</build_depend>

<depend>liblapack-dev</depend>
<depend>coinor-libipopt-dev</depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit 4bb5ce6

Please sign in to comment.