-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update windows CI to leverage colcon
- Loading branch information
1 parent
71fbdd5
commit d26e435
Showing
9 changed files
with
97 additions
and
130 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- feature/CommandLanguage | ||
pull_request: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- feature/CommandLanguage | ||
pull_request: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
|
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,82 @@ | ||
name: Windows-2019 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
|
||
env: | ||
VCPKG_PKGS: >- | ||
fcl bullet3 octomap console-bridge eigen3 yaml-cpp benchmark tinyxml2 assimp orocos-kdl pcl lapack-reference jsoncpp boost-dll boost-filesystem boost-filesystem boost-serialization boost-program-options boost-graph | ||
jobs: | ||
windows_ci: | ||
name: Windows-2019 | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: workspace/src/trajopt | ||
|
||
- name: checkout-vcpkg | ||
uses: actions/checkout@v3 | ||
with: | ||
path: vcpkg | ||
repository: microsoft/vcpkg | ||
|
||
- name: bootstrap-vcpkg | ||
working-directory: vcpkg | ||
run: bootstrap-vcpkg.bat | ||
|
||
- name: vcpkg-dry-run | ||
working-directory: vcpkg | ||
shell: cmd | ||
run: | | ||
vcpkg install --dry-run --triplet x64-windows-release ${{ env.VCPKG_PKGS }} > vcpkg_dry_run.txt | ||
- name: cache-vcpkg-archives | ||
if: startsWith(github.ref, 'refs/tags/v') != true | ||
id: cache-vcpkg-archives | ||
uses: pat-s/always-upload-cache@v3 | ||
with: | ||
path: C:\Users\runneradmin\AppData\Local\vcpkg\archives | ||
key: ${{ runner.os }}-x64-windows-release-vcpkg-${{ hashFiles('vcpkg/vcpkg_dry_run.txt') }}-main | ||
restore-keys: | | ||
${{ runner.os }}-x64-windows-release-vcpkg- | ||
- name: install-depends | ||
shell: cmd | ||
run: | | ||
vcpkg integrate install | ||
python -m pip install vcstool -q | ||
python -m pip install colcon-common-extensions -q | ||
python -m pip install ninja -q | ||
vcpkg install --triplet x64-windows-release ${{ env.VCPKG_PKGS }} | ||
- name: configure-msvc | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: x64 | ||
|
||
- name: build-workspace | ||
working-directory: workspace | ||
shell: cmd | ||
run: | | ||
vcs import --input "${{ github.workspace }}/workspace/src/trajopt/dependencies.rosinstall" src/ | ||
colcon build --packages-ignore trajopt_sqp trajopt_ifopt --event-handlers console_direct+ --cmake-args -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-release -DCMAKE_BUILD_TYPE=Release -DTRAJOPT_ENABLE_TESTING=ON -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF | ||
if %ERRORLEVEL% GEQ 1 exit 1 | ||
- name: run-test | ||
working-directory: workspace | ||
shell: cmd | ||
run: | | ||
call ./install/setup.bat | ||
set PATH=%PATH%;C:/vcpkg/installed/x64-windows-release/bin | ||
colcon test --packages-skip trajopt_sqp trajopt_ifopt --event-handlers console_direct+ --return-code-on-test-failure | ||
if %ERRORLEVEL% GEQ 1 exit 1 | ||
colcon test-result --verbose | ||
if %ERRORLEVEL% GEQ 1 exit 1 | ||
This file was deleted.
Oops, something went wrong.
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,16 +1,16 @@ | ||
- git: | ||
local-name: ros_industrial_cmake_boilerplate | ||
uri: https://github.com/ros-industrial/ros_industrial_cmake_boilerplate.git | ||
version: master | ||
version: 0.2.16 | ||
- git: | ||
local-name: tesseract | ||
uri: https://github.com/ros-industrial-consortium/tesseract.git | ||
version: master | ||
version: 0.9.11 | ||
- git: | ||
local-name: opw_kinematics | ||
uri: https://github.com/Jmeyer1292/opw_kinematics.git | ||
version: master | ||
version: 0.4.6 | ||
- git: | ||
local-name: ifopt | ||
uri: https://github.com/ethz-adrl/ifopt.git | ||
version: master | ||
version: 2.1.3 |
This file was deleted.
Oops, something went wrong.
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