-
Notifications
You must be signed in to change notification settings - Fork 38
63 lines (57 loc) · 2.26 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Windows
on:
push:
branches:
- master
- 'dev**'
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/windows.yml'
- '.github/workflows/windows_dependencies.repos'
schedule:
- cron: '0 5 * * *'
jobs:
ci:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]
steps:
- uses: actions/checkout@v4
with:
path: target_ws/src
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
with:
pkgs: >-
fcl bullet3[multithreading,double-precision,rtti] octomap
console-bridge eigen3 yaml-cpp benchmark tinyxml2 assimp orocos-kdl pcl
lapack-reference boost-dll boost-filesystem boost-serialization boost-format boost-stacktrace
boost-program-options boost-graph urdfdom ccd[double-precision] gtest
ompl taskflow jsoncpp flann benchmark
triplet: x64-windows-release
extra-args: --clean-after-build
token: ${{ github.token }}
cache-key: ci-${{ matrix.os }}
github-binarycache: true
- name: configure-msvc
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: update environment
shell: bash
run: |
echo "PATH=${{ env.PATH }};$GITHUB_WORKSPACE\vcpkg\installed\x64-windows-release\bin" >> "$GITHUB_ENV"
echo "CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE\vcpkg\installed\x64-windows-release" >> "$GITHUB_ENV"
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v8
with:
ccache-prefix: ${{ matrix.distro }}
vcs-file: .github/workflows/windows_dependencies.repos
upstream-args: --cmake-args -G "Ninja" -DVCPKG_TARGET_TRIPLET=x64-windows-release -DCMAKE_BUILD_TYPE=Release -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF -DTESSERACT_BUILD_TRAJOPT_IFOPT=OFF -DVCPKG_APPLOCAL_DEPS=OFF
target-path: target_ws/src
target-args: --event-handlers console_cohesion+ --packages-ignore tesseract_examples --cmake-args -G "Ninja" -DVCPKG_TARGET_TRIPLET=x64-windows-release -DCMAKE_BUILD_TYPE=Release -DTESSERACT_ENABLE_TESTING=ON -DTESSERACT_BUILD_TRAJOPT_IFOPT=OFF -DVCPKG_APPLOCAL_DEPS=OFF
run-tests-args: --packages-ignore tesseract_examples