-
Notifications
You must be signed in to change notification settings - Fork 286
116 lines (104 loc) · 2.84 KB
/
ci_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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI Windows
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/cache_*.yml"
- "docker/dev/**"
pull_request:
branches:
- "**"
paths-ignore:
- ".github/workflows/cache_*.yml"
- "docker/dev/**"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
workflow_dispatch:
jobs:
build:
name: win-${{ matrix.build_type }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
toolset: [""]
build_type: [Release]
build_shared_libs: [OFF] # TODO(JS): Add ON once shared lib build is resolved
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: johnwason/vcpkg-action@v6
with:
# TODO: Add ode and coin-or-ipopt
pkgs: >
assimp
eigen3
fcl
fmt
spdlog
bullet3
freeglut
glfw3
nlopt
opengl
osg
pagmo2
tinyxml2
tracy
urdfdom
triplet: x64-windows
revision: "2024.06.15"
github-binarycache: true
token: ${{ github.token }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U pytest
- name: Build
shell: cmd
run: |
cmake ^
-S . ^
-B build ^
-G "Visual Studio 17 2022" ^
-A x64 ^
-Wno-dev ${{ matrix.toolset }} ^
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ^
-DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" ^
-DDART_MSVC_DEFAULT_OPTIONS=ON ^
-DDART_VERBOSE=ON ^
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} ^
-DDART_USE_SYSTEM_IMGUI=OFF ^
|| exit /b
cmake ^
--build build ^
--config ${{ matrix.build_type }} ^
--target ALL_BUILD ^
--parallel ^
|| exit /b
ctest ^
--test-dir build ^
--output-on-failure ^
--build-config ${{ matrix.build_type }} ^
|| exit /b
build_on_pixi:
name: win-pixi
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
cache: true
- name: Check Lint
run: pixi run check-lint
- name: Test DART and dartpy
run: |
pixi run test # TODO: Change to test-all
- name: Install
run: |
pixi run install