-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix re-compilation issue and add CI test (#3)
* Force build despite local installation Signed-off-by: Chen Bainian <[email protected]> * Add CI build Signed-off-by: Chen Bainian <[email protected]> * Add missing dependencies Signed-off-by: Chen Bainian <[email protected]> * Only test foxy environment in CI Signed-off-by: Chen Bainian <[email protected]> --------- Signed-off-by: Chen Bainian <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
industrial_ci: | ||
strategy: | ||
matrix: | ||
env: | ||
- {ROS_DISTRO: foxy, ROS_REPO: main} | ||
- {ROS_DISTRO: foxy, ROS_REPO: testing} | ||
env: | ||
CCACHE_DIR: ~/.ccache | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# step up caching | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }} | ||
# Run industrial_ci | ||
- uses: 'ros-industrial/industrial_ci@master' | ||
env: ${{matrix.env}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
# Check local installation first | ||
find_library(onnxruntime_LIBRARIES NAMES onnxruntime PATHS /usr/local/lib) | ||
if(onnxruntime_LIBRARIES STREQUAL onnxruntime_LIBRARIES-NOTFOUND) | ||
# add the local Modules directory to the modules path | ||
# ONNXConfig.cmake is ignored for now, since it is not used by EPD | ||
# TODO(anyone): Verify if ONNXConfig.cmake is needed as find_package(ONNX) | ||
find_library(onnxruntime_LIBRARIES NAMES onnxruntime PATHS ${@PROJECT_NAME@_DIR}/../../../opt/epd_onnxruntime_vendor/lib) | ||
# add the local Modules directory to the modules path | ||
# ONNXConfig.cmake is ignored for now, since it is not used by EPD | ||
# TODO(anyone): Verify if ONNXConfig.cmake is needed as find_package(ONNX) | ||
find_library(onnxruntime_LIBRARIES NAMES onnxruntime PATHS ${@PROJECT_NAME@_DIR}/../../../opt/epd_onnxruntime_vendor/lib) | ||
|
||
set(onnxruntime_INSTALL_PREFIX "${@PROJECT_NAME@_DIR}/../../../opt/epd_onnxruntime_vendor") | ||
else() | ||
# Using local installation | ||
set(onnxruntime_INSTALL_PREFIX "/usr/local") | ||
endif() | ||
set(onnxruntime_opt "${@PROJECT_NAME@_DIR}/../../../opt/epd_onnxruntime_vendor") | ||
|
||
message(WARNING "Find onnxruntime libraries at" ${onnxruntime_LIBRARIES}) | ||
|
||
set(epd_onnxruntime_vendor_LIBRARIES ${onnxruntime_LIBRARIES}) | ||
set(epd_onnxruntime_vendor_INCLUDE_DIRS | ||
${onnxruntime_INSTALL_PREFIX}/include | ||
${onnxruntime_INSTALL_PREFIX}/include/onnxruntime/core/session | ||
${onnxruntime_opt}/include | ||
${onnxruntime_opt}/include/onnxruntime/core/session | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters