Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous Integration/ROS Noetic Compatibility #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/.ci_install_phoxi_sdk_bionic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Update and install packages required to install dependencies
apt-get update --qq
apt install -y --no-install-recommends wget unzip

# Install the Photoneo SDK
cd /tmp
wget https://photoneo.com/files/installer/PhoXi/1.2.14/PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu18-STABLE.run.zip -q
unzip PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu18-STABLE.run.zip
chmod +x PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu18-STABLE.run
./PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu18-STABLE.run
14 changes: 14 additions & 0 deletions .github/workflows/.ci_install_phoxi_sdk_xenial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Update and install packages required to install dependencies
apt-get update --qq
apt install -y --no-install-recommends wget tar

# Install the Photoneo SDK
cd /tmp
wget https://photoneo.com/files/installer/PhoXi/1.2.14/PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu16-STABLE.tar -q
tar -xf PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu16-STABLE.tar
chmod +x PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu16-STABLE.run
./PhotoneoPhoXiControlInstaller-1.2.14-Ubuntu16-STABLE.run


27 changes: 27 additions & 0 deletions .github/workflows/bionic_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bionic-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
industrial_ci:
name: Melodic
runs-on: ubuntu-latest
env:
CI_NAME: Bionic-Build
OS_NAME: ubuntu
OS_CODE_NAME: bionic
ROS_DISTRO: melodic
ROS_REPO: main
BEFORE_BUILD_TARGET_WORKSPACE: './ci/.ci_install_phoxi_sdk_bionic.sh'
BEFORE_BUILD_TARGET_WORKSPACE_EMBED: 'export PHOXI_CONTROL_PATH=/opt/PhotoneoPhoXiControl-'
PhotoTeeborChoka marked this conversation as resolved.
Show resolved Hide resolved
NOT_TEST_BUILD: 'true' # Don't run the tests because they depend on being connected to a scanner
steps:
- uses: actions/checkout@v2
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
27 changes: 27 additions & 0 deletions .github/workflows/noetic_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Focal-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
industrial_ci:
name: Noetic
runs-on: ubuntu-latest
env:
CI_NAME: Focal-Build
OS_NAME: ubuntu
OS_CODE_NAME: focal
ROS_DISTRO: noetic
ROS_REPO: main
BEFORE_BUILD_TARGET_WORKSPACE: './ci/.ci_install_phoxi_sdk_bionic.sh'
BEFORE_BUILD_TARGET_WORKSPACE_EMBED: 'export PHOXI_CONTROL_PATH=/opt/PhotoneoPhoXiControl-'
NOT_TEST_BUILD: 'true' # Don't run the tests because they depend on being connected to a scanner
steps:
- uses: actions/checkout@v2
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
27 changes: 27 additions & 0 deletions .github/workflows/xenial_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Xenial-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
industrial_ci:
name: Kinetic
runs-on: ubuntu-latest
env:
CI_NAME: Xenial-Build
OS_NAME: ubuntu
OS_CODE_NAME: xenial
ROS_DISTRO: kinetic
ROS_REPO: main
BEFORE_BUILD_TARGET_WORKSPACE: './ci/.ci_install_phoxi_sdk_xenial.sh'
BEFORE_BUILD_TARGET_WORKSPACE_EMBED: 'export PHOXI_CONTROL_PATH=/opt/PhotoneoPhoXiControl-1.2.14'
NOT_TEST_BUILD: 'true' # Don't run the tests because they depend on being connected to a scanner
steps:
- uses: actions/checkout@v2
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.8.12)
project(phoxi_camera)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

find_package(PhoXi REQUIRED CONFIG PATHS "$ENV{PHOXI_CONTROL_PATH}")
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
Expand Down
1 change: 1 addition & 0 deletions ci