blob: 2a47ea4ed2340139cfd039734a6ba772ad653fef (
plain) (
blame)
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
|
name: Build Boost
description: Build Boost
inputs:
boost-dir:
description: Boost directory
required: false
toolset:
description: Toolset to use
required: false
default: auto
libraries:
description: Libraries to build
required: false
platform:
description: Target platform
required: false
default: x64
configuration:
description: Configuration to build
required: false
default: Debug
runs:
using: composite
steps:
- run: |
$python = 'python'
$boost_dir = '${{ inputs.boost-dir }}'
if (-not $boost_dir) {
$boost_dir = $env:BOOST_DIR
}
$libraries = '${{ inputs.libraries }}'
$libraries = $libraries.Split(' ') | %{ "--with-$_" }
if (-not $libraries) {
Remove-Variable libraries
}
if ($env:CI_HOST_CYGWIN) {
$python = 'python3'
$boost_dir = cygpath.exe -ua $boost_dir
}
& $python `
-m project.boost.build `
--toolset '${{ inputs.toolset }}' `
--platform '${{ inputs.platform }}' `
--configuration '${{ inputs.configuration }}' `
-- `
$boost_dir `
$libraries
shell: pwsh
|