blob: 2c6f446dba4f617b5db261f742500cd5eadbf4f2 (
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
53
|
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:
- env:
ARG_BOOST_DIR: ${{ inputs.boost-dir }}
ARG_LIBRARIES: ${{ inputs.libraries }}
ARG_TOOLSET: ${{ inputs.toolset }}
ARG_PLATFORM: ${{ inputs.platform }}
ARG_CONFIGURATION: ${{ inputs.configuration }}
run: |
$python = 'python'
$boost_dir = $env:ARG_BOOST_DIR
if (-not $boost_dir) {
$boost_dir = $env:BOOST_DIR
}
$libraries = $env:ARG_LIBRARIES
$libraries = $libraries.Split(' ')
if (-not $libraries) {
Remove-Variable libraries
}
& $python `
-m project.boost.build `
--toolset $env:ARG_TOOLSET `
--platform $env:ARG_PLATFORM `
--configuration $env:ARG_CONFIGURATION `
-- `
$boost_dir `
$libraries
shell: pwsh
|