forked from aldebaran/urbi
-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (46 loc) · 1.65 KB
/
build-windows.yaml
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
name: Windows
on:
push:
branches: [ "master" ]
#pull_request:
# branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: 1.80.0
# OPTIONAL: Specify a custon install location
boost_install_dir: boost
# OPTIONAL: Specify a platform version
platform_version: 2022
# OPTIONAL: Specify a toolset
toolset: msvc
link: static
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=urbisdk -DBoost_USE_STATIC_LIBS=On -Bbuild .
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
- name: Build
# Build your program with the given configuration
run: cmake --build build --config Release
- name: Install
# Build your program with the given configuration
run: cmake --install build --config Release
- uses: actions/upload-artifact@v3
with:
name: urbisdk-windows
path: urbisdk/