Skip to content

Commit 530eee5

Browse files
Add windows support stage 1
1 parent 1d39e3d commit 530eee5

File tree

68 files changed

+750
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+750
-450
lines changed

.github/workflows/bionic_build.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Bionic-Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/CommandLanguage
8+
pull_request:
9+
schedule:
10+
- cron: '0 5 * * *'
11+
12+
jobs:
13+
industrial_ci:
14+
name: Melodic
15+
runs-on: ubuntu-latest
16+
env:
17+
CI_NAME: Bionic-Build
18+
OS_NAME: ubuntu
19+
OS_CODE_NAME: bionic
20+
ROS_DISTRO: melodic
21+
ROS_REPO: main
22+
UPSTREAM_WORKSPACE: "github:swri-robotics/descartes_light#feature/CommandLanguage github:Jmeyer1292/opw_kinematics#master github:ethz-adrl/ifopt#master github:ros-industrial/cmake_common_scripts#master"
23+
TARGET_WORKSPACE: ". github:ros-industrial-consortium/tesseract#feature/CommandLanguage"
24+
ROSDEP_SKIP_KEYS: "bullet3 descartes_opw descartes_samplers descartes_light opw_kinematics cmake_common_scripts fcl ifopt taskflow"
25+
DOCKER_IMAGE: "rosindustrial/tesseract:melodic"
26+
PARALLEL_TESTS: false
27+
CCACHE_DIR: "/home/runner/work/trajopt_ros/trajopt_ros/Bionic-Build/.ccache"
28+
UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"
29+
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DTRAJOPT_ENABLE_TESTING=ON -DTRAJOPT_ENABLE_CLANG_TIDY=ON"
30+
AFTER_SCRIPT: 'catkin build -w $target_ws --no-deps --verbose trajopt trajopt_ifopt trajopt_sco trajopt_sqp --make-args test'
31+
steps:
32+
- uses: actions/checkout@v1
33+
34+
- name: Free Disk Space
35+
run: |
36+
sudo swapoff -a
37+
sudo rm -f /swapfile
38+
sudo apt clean
39+
docker rmi $(docker image ls -aq)
40+
df -h
41+
42+
- name: Prepare ccache timestamp
43+
id: ccache_cache_timestamp
44+
shell: cmake -P {0}
45+
run: |
46+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
47+
message("::set-output name=timestamp::${current_date}")
48+
49+
- name: ccache cache files
50+
uses: actions/[email protected]
51+
with:
52+
path: ${{ env.CI_NAME }}/.ccache
53+
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
54+
restore-keys: |
55+
${{ env.CI_NAME }}-ccache-
56+
57+
- uses: 'ros-industrial/industrial_ci@master'
58+
env: ${{env}}

.github/workflows/clang_format.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Clang-Format
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/CommandLanguage
8+
pull_request:
9+
schedule:
10+
- cron: '0 5 * * *'
11+
12+
jobs:
13+
industrial_ci:
14+
name: Format
15+
runs-on: ubuntu-latest
16+
env:
17+
CI_NAME: Clang-Format
18+
OS_NAME: ubuntu
19+
OS_CODE_NAME: bionic
20+
ROS_DISTRO: melodic
21+
ROS_REPO: main
22+
ROSDEP_SKIP_KEYS: "bullet3 descartes_opw descartes_samplers descartes_light opw_kinematics cmake_common_scripts fcl ifopt taskflow benchmark"
23+
CLANG_FORMAT_CHECK: file
24+
CLANG_FORMAT_VERSION: 8
25+
DOCKER_IMAGE: "rosindustrial/tesseract:melodic"
26+
steps:
27+
- uses: actions/checkout@v1
28+
29+
- name: Free Disk Space
30+
run: |
31+
sudo swapoff -a
32+
sudo rm -f /swapfile
33+
sudo apt clean
34+
docker rmi $(docker image ls -aq)
35+
df -h
36+
37+
- name: Prepare ccache timestamp
38+
id: ccache_cache_timestamp
39+
shell: cmake -P {0}
40+
run: |
41+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
42+
message("::set-output name=timestamp::${current_date}")
43+
44+
- name: ccache cache files
45+
uses: actions/[email protected]
46+
with:
47+
path: ${{ env.CI_NAME }}/.ccache
48+
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
49+
restore-keys: |
50+
${{ env.CI_NAME }}-ccache-
51+
52+
- uses: 'ros-industrial/industrial_ci@master'
53+
env: ${{env}}

.github/workflows/focal_build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Focal-Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/CommandLanguage
8+
pull_request:
9+
schedule:
10+
- cron: '0 5 * * *'
11+
12+
jobs:
13+
industrial_ci:
14+
name: Noetic
15+
runs-on: ubuntu-latest
16+
env:
17+
CI_NAME: Focal-Build
18+
OS_NAME: ubuntu
19+
OS_CODE_NAME: focal
20+
ROS_DISTRO: noetic
21+
ROS_REPO: main
22+
UPSTREAM_WORKSPACE: "github:swri-robotics/descartes_light#feature/CommandLanguage github:Jmeyer1292/opw_kinematics#master github:ethz-adrl/ifopt#master github:ros-industrial/cmake_common_scripts#master"
23+
TARGET_WORKSPACE: ". github:ros-industrial-consortium/tesseract#feature/CommandLanguage"
24+
ROSDEP_SKIP_KEYS: "bullet3 descartes_opw descartes_samplers descartes_light opw_kinematics cmake_common_scripts fcl ifopt taskflow"
25+
DOCKER_IMAGE: "rosindustrial/tesseract:noetic"
26+
PARALLEL_TESTS: false
27+
CCACHE_DIR: "/home/runner/work/trajopt_ros/trajopt_ros/Focal-Build/.ccache"
28+
UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"
29+
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DTRAJOPT_ENABLE_TESTING=ON"
30+
steps:
31+
- uses: actions/checkout@v1
32+
33+
- name: Free Disk Space
34+
run: |
35+
sudo swapoff -a
36+
sudo rm -f /swapfile
37+
sudo apt clean
38+
docker rmi $(docker image ls -aq)
39+
df -h
40+
41+
- name: Prepare ccache timestamp
42+
id: ccache_cache_timestamp
43+
shell: cmake -P {0}
44+
run: |
45+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
46+
message("::set-output name=timestamp::${current_date}")
47+
48+
- name: ccache cache files
49+
uses: actions/[email protected]
50+
with:
51+
path: ${{ env.CI_NAME }}/.ccache
52+
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
53+
restore-keys: |
54+
${{ env.CI_NAME }}-ccache-
55+
56+
- uses: 'ros-industrial/industrial_ci@master'
57+
env: ${{env}}

.github/workflows/main.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Windows-Noetic-Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/CommandLanguage
8+
pull_request:
9+
schedule:
10+
- cron: '0 5 * * *'
11+
12+
jobs:
13+
windows_ci:
14+
name: Noetic
15+
runs-on: windows-latest
16+
env:
17+
ROS_DISTRO: noetic
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
path: src/trajopt_ros
23+
- name: Build
24+
shell: cmd
25+
run: |
26+
choco sources add -n=roswin -s https://aka.ms/ros/public --priority 1
27+
choco install ros-%ROS_DISTRO%-desktop_full -y --no-progress
28+
29+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
30+
call "C:\opt\ros\%ROS_DISTRO%\x64\setup.bat"
31+
32+
choco install console_bridge -y --no-progress
33+
choco install clapack -y --no-progress
34+
choco install openblas -y --no-progress
35+
36+
set PATH=D:\a\trajopt_ros\trajopt_ros\install_isolated\bin;C:\opt\rosdeps\x64\bin;C:\opt\rosdeps\x64\lib;%PATH%
37+
set LD_LIBRARY_PATH=D:\a\trajopt_ros\trajopt_ros\install_isolated\lib;C:\opt\rosdeps\x64\lib;%LD_LIBRARY_PATH%
38+
set CMAKE_PREFIX_PATH=D:\a\trajopt_ros\trajopt_ros\install_isolated\CMake;C:\opt\rosdeps\x64;%CMAKE_PREFIX_PATH%
39+
set PKG_CONFIG_PATH=D:\a\trajopt_ros\trajopt_ros\install_isolated\lib\pkgconfig;C:\opt\rosdeps\x64\lib\pkgconfig;%PKG_CONFIG_PATH%
40+
41+
set
42+
43+
vcs import --input "${{ github.workspace }}/src/trajopt_ros/dependencies.rosinstall" src/
44+
45+
catkin_make_isolated --install --force-cmake --only-pkg-with-deps trajopt trajopt_ifopt trajopt_sco trajopt_sqp --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF
46+
call "D:\a\trajopt_ros\trajopt_ros\install_isolated\setup.bat"
47+
catkin_make_isolated --install --force-cmake --pkg trajopt trajopt_sco --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF -DTRAJOPT_ENABLE_TESTING=ON --make-args test

.github/workflows/xenial_build.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Xenial-Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/CommandLanguage
8+
pull_request:
9+
schedule:
10+
- cron: '0 5 * * *'
11+
12+
jobs:
13+
industrial_ci:
14+
name: Kinetic
15+
runs-on: ubuntu-latest
16+
env:
17+
CI_NAME: Xenial-Build
18+
OS_NAME: ubuntu
19+
OS_CODE_NAME: xenial
20+
ROS_DISTRO: kinetic
21+
ROS_REPO: main
22+
UPSTREAM_WORKSPACE: "github:swri-robotics/descartes_light#feature/CommandLanguage github:Jmeyer1292/opw_kinematics#master github:ethz-adrl/ifopt#master github:ros-industrial/cmake_common_scripts#master"
23+
TARGET_WORKSPACE: ". github:ros-industrial-consortium/tesseract#feature/CommandLanguage"
24+
ROSDEP_SKIP_KEYS: "bullet3 descartes_opw descartes_samplers descartes_light opw_kinematics cmake_common_scripts fcl ifopt taskflow benchmark"
25+
DOCKER_IMAGE: "rosindustrial/tesseract:kinetic"
26+
PARALLEL_TESTS: false
27+
CCACHE_DIR: "/home/runner/work/trajopt_ros/trajopt_ros/Xenial-Build/.ccache"
28+
UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"
29+
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DTRAJOPT_ENABLE_TESTING=ON"
30+
AFTER_SCRIPT: 'catkin build -w $target_ws --no-deps --verbose trajopt trajopt_ifopt trajopt_sco trajopt_sqp --make-args test'
31+
steps:
32+
- uses: actions/checkout@v1
33+
34+
- name: Free Disk Space
35+
run: |
36+
sudo swapoff -a
37+
sudo rm -f /swapfile
38+
sudo apt clean
39+
docker rmi $(docker image ls -aq)
40+
df -h
41+
42+
- name: Prepare ccache timestamp
43+
id: ccache_cache_timestamp
44+
shell: cmake -P {0}
45+
run: |
46+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
47+
message("::set-output name=timestamp::${current_date}")
48+
49+
- name: ccache cache files
50+
uses: actions/[email protected]
51+
with:
52+
path: ${{ env.CI_NAME }}/.ccache
53+
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
54+
restore-keys: |
55+
${{ env.CI_NAME }}-ccache-
56+
57+
- uses: 'ros-industrial/industrial_ci@master'
58+
env: ${{env}}

.github_actions.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# trajopt_ros
22

3-
[![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/CI/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions?query=branch%3Amaster+)
3+
Platform | CI Status
4+
---------------------|:---------
5+
Linux (Focal) | [![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/Focal-Build/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions)
6+
Linux (Bionic) | [![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/Bionic-Build/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions)
7+
Linux (Xenial) | [![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/Xenial-Build/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions)
8+
Windows | [![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/Windows-Noetic-Build/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions)
9+
Lint (Clang-Format) | [![Build Status](https://github.com/ros-industrial-consortium/trajopt_ros/workflows/Clang-Format/badge.svg)](https://github.com/ros-industrial-consortium/trajopt_ros/actions)
10+
11+
412
[![Github Issues](https://img.shields.io/github/issues/ros-industrial-consortium/trajopt_ros.svg)](http://github.com/ros-industrial-consortium/trajopt_ros/issues)
513

614
[![license - apache 2.0](https://img.shields.io/:license-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0)

ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/workflows/

dependencies.rosinstall

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
local-name: tesseract
77
uri: https://github.com/ros-industrial-consortium/tesseract.git
88
version: feature/CommandLanguage
9+
- git:
10+
local-name: tesseract_ext
11+
uri: https://github.com/ros-industrial-consortium/tesseract_ext.git
12+
version: master
913
- git:
1014
local-name: descartes_light
1115
uri: https://github.com/swri-robotics/descartes_light.git
12-
version: master
16+
version: feature/CommandLanguage
1317
- git:
1418
local-name: opw_kinematics
1519
uri: https://github.com/Jmeyer1292/opw_kinematics.git

0 commit comments

Comments
 (0)