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