-
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
2e1b4c9
commit c300363
Showing
5 changed files
with
79 additions
and
125 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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
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 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@v2 | ||
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 ${{ 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-vcpkg-${{ hashFiles('vcpkg/vcpkg_dry_run.txt') }}-main | ||
|
||
- 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 ${{ 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 --event-handlers console_direct+ --cmake-args -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -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: | | ||
colcon test --event-handlers console_direct+ --return-code-on-test-failure | ||
colcon test-result --verbos |
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.10 | ||
- 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.