forked from ompl/ompl
-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (82 loc) · 3.1 KB
/
build.yml
File metadata and controls
89 lines (82 loc) · 3.1 KB
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
name: Build & Test
on:
workflow_dispatch:
pull_request:
push:
jobs:
default:
name: ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
pybuilds: cp3{10,11,12,13}-manylinux_x86_64
arch: x86_64
id: linux_x86_64
- os: ubuntu-24.04-arm
pybuilds: cp3{10,11,12,13}-manylinux_aarch64
arch: aarch64
id: linux_arm64
- os: macos-13
pybuilds: cp3{10,11,12,13}-macosx_x86_64
arch: x86_64
id: macos_x86
- os: macos-15
pybuilds: cp3{10,11,12,13}-macosx_arm64
arch: arm64
id: macos_arm64
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: "Install Linux dependencies"
if: runner.os == 'Linux'
run: |
sudo apt-get update -y -qq &&
sudo apt-get install -y -qq \
libboost-program-options-dev \
libboost-serialization-dev \
libboost-test-dev \
libeigen3-dev \
libflann-dev \
libtriangle-dev \
libyaml-cpp-dev
- name: "Install macOS dependencies"
if: runner.os == 'macOS'
run: brew install boost eigen flann ode yaml-cpp
- name: "Install Windows dependencies"
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v11
id: runvcpkg
with:
vcpkgGitCommitId: da4b78d35084ec4e9808aa02017028da03b8d2ab
vcpkgTriplet: 'x64-windows'
vcpkgArguments: 'boost-dynamic-bitset boost-filesystem boost-graph boost-odeint boost-program-options boost-serialization boost-system boost-test eigen3 flann yaml-cpp'
- name: Build & Test (Linux, macOS)
if: runner.os != 'Windows'
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
build-type: Release
configure-options: -DOMPL_REGISTRATION=OFF -DOMPL_BUILD_DEMOS=OFF -DVAMP_PORTABLE_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install -DOMPL_PYTHON_INSTALL_DIR=${{ runner.workspace }}/install/python
run-test: true
ctest-options: --output-on-failure
install-build: true
- name: Test CMake target linkage to ompl::ompl
if: runner.os != 'Windows'
run: |
cd tests/cmake_export
cmake -B build -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install
cmake --build build
- name: Build & Test (Windows)
if: runner.os == 'Windows'
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
build-type: Release
configure-options: -DOMPL_REGISTRATION=OFF -DOMPL_BUILD_DEMOS=OFF -DVAMP_PORTABLE_BUILD=ON -DMACHINE_SPEED_FACTOR=5.0 -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install -DOMPL_PYTHON_INSTALL_DIR=${{ runner.workspace }}/install/python -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/ompl/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_GENERATOR_PLATFORM=x64
run-test: true
ctest-options: --output-on-failure
install-build: true