Skip to content

Commit

Permalink
Update windows CI to leverage colcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jun 29, 2022
1 parent 2e1b4c9 commit c300363
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 125 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/bionic_build.yml

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/windows_2019.yml
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
44 changes: 0 additions & 44 deletions .github/workflows/windows_noetic_build.yml

This file was deleted.

8 changes: 4 additions & 4 deletions dependencies.rosinstall
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
20 changes: 0 additions & 20 deletions dependencies_with_ext.rosinstall

This file was deleted.

0 comments on commit c300363

Please sign in to comment.