-
Notifications
You must be signed in to change notification settings - Fork 286
57 lines (50 loc) · 1.79 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
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI Windows
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
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
jobs:
build_2022:
name: ${{ matrix.build_type }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
toolset: [""]
build_type: [Release]
# build_shared_libs: [ON, OFF] # TODO(JS): Enable once shared lib build is resolved
build_shared_libs: [OFF]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: johnwason/vcpkg-action@v6
with:
pkgs: assimp ccd eigen3 fcl fmt spdlog bullet3 coin-or-ipopt flann freeglut glfw3 nlopt ode opengl osg pagmo2 pybind11 tinyxml2 urdfdom
triplet: x64-windows
revision: "2024.02.14"
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: |
mkdir build
cd build
cmake .. -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 }}
cmake --build . --config ${{ matrix.build_type }} --target ALL_BUILD --parallel
ctest --rerun-failed --output-on-failure -C ${{ matrix.build_type }}