Skip to content

Commit 1931828

Browse files
committed
Add github action ci with vcpkg
1 parent 958884d commit 1931828

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.github/workflows/build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build & Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
default:
15+
name: ${{ matrix.os }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- os: windows-latest
22+
triplet: x64-windows-release
23+
build_type: Release
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
submodules: true
28+
29+
- name: "Install dependencies"
30+
run: >
31+
vcpkg x-set-installed --triplet ${{ matrix.triplet }}
32+
assimp
33+
boost-dynamic-bitset
34+
boost-filesystem
35+
boost-graph
36+
boost-odeint
37+
boost-program-options
38+
boost-serialization
39+
boost-system
40+
boost-test
41+
boost-ublas
42+
eigen3
43+
fcl
44+
pkgconf
45+
46+
- name: cmake generate
47+
shell: bash
48+
run: >
49+
cmake -B build
50+
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
51+
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
52+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
53+
-DOMPL_VERSIONED_INSTALL=OFF
54+
-DOMPL_BUILD_DEMOS=OFF
55+
-DOMPL_BUILD_PYBINDINGS=OFF
56+
-DCMAKE_POLICY_DEFAULT_CMP0167=OLD
57+
-DOMPL_REGISTRATION=OFF
58+
59+
- name: cmake build
60+
shell: bash
61+
run: |
62+
cmake --build build --config ${{ matrix.build_type }} --target package
63+
64+
- name: test
65+
shell: bash
66+
run: |
67+
cmake --build build --config ${{ matrix.build_type }} --target RUN_TESTS

0 commit comments

Comments
 (0)