Skip to content

Commit 89e3934

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

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 }}-${{ matrix.arch }}
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 Windows dependencies"
30+
if: runner.os == 'Windows'
31+
run: >
32+
vcpkg x-set-installed --triplet ${{ matrix.triplet }}
33+
assimp
34+
boost-dynamic-bitset
35+
boost-filesystem
36+
boost-graph
37+
boost-odeint
38+
boost-program-options
39+
boost-serialization
40+
boost-system
41+
boost-test
42+
boost-ublas
43+
eigen3
44+
fcl
45+
pkgconf
46+
47+
- name: cmake generate
48+
shell: bash
49+
run: >
50+
cmake -B build
51+
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
52+
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
53+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
54+
-DOMPL_VERSIONED_INSTALL=OFF
55+
-DOMPL_BUILD_DEMOS=OFF
56+
-DOMPL_BUILD_PYBINDINGS=OFF
57+
-DCMAKE_POLICY_DEFAULT_CMP0167=OLD
58+
-DOMPL_REGISTRATION=OFF
59+
60+
- name: cmake build
61+
shell: bash
62+
run: |
63+
cmake --build build --config ${{ matrix.build_type }} --target package
64+
65+
- name: test
66+
shell: bash
67+
run: |
68+
cmake --build build --config ${{ matrix.build_type }} --target RUN_TESTS

0 commit comments

Comments
 (0)