aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/build-boost/action.yml
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-19 04:48:26 +0300
committerEgor Tensin <egor@tensin.name>2026-10-19 05:23:15 +0300
commitb1bfbd3501b6521d3204b5d060f88a8f6153f945 (patch)
treebf2d3869023e1dd20bf395d5dca52f4b6b2b4f39 /.github/actions/build-boost/action.yml
parentworkflows/lint: add a zizmor job (diff)
downloadcmake-common-b1bfbd3501b6521d3204b5d060f88a8f6153f945.tar.gz
cmake-common-b1bfbd3501b6521d3204b5d060f88a8f6153f945.zip
{actions,workflows}: fail on unset environment variables
The $env:NAME syntax fails to produce an error if $NAME is not defined, regardless of Set-StrictMode/Set-PSDebug. Also, while I'm at it, clean up the actions/workflows code a little bit.
Diffstat (limited to '.github/actions/build-boost/action.yml')
-rw-r--r--.github/actions/build-boost/action.yml24
1 files changed, 12 insertions, 12 deletions
diff --git a/.github/actions/build-boost/action.yml b/.github/actions/build-boost/action.yml
index 2c6f446..4b0b5ad 100644
--- a/.github/actions/build-boost/action.yml
+++ b/.github/actions/build-boost/action.yml
@@ -1,7 +1,7 @@
name: Build Boost
description: Build Boost
inputs:
- boost-dir:
+ boost_dir:
description: Boost directory
required: false
toolset:
@@ -23,30 +23,30 @@ runs:
using: composite
steps:
- env:
- ARG_BOOST_DIR: ${{ inputs.boost-dir }}
+ 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
+ $boost_dir = (Get-ChildItem env:ARG_BOOST_DIR).Value
if (-not $boost_dir) {
- $boost_dir = $env:BOOST_DIR
+ $boost_dir = (Get-ChildItem env:BOOST_DIR).Value
}
-
- $libraries = $env:ARG_LIBRARIES
+ $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 `
+ & python `
-m project.boost.build `
- --toolset $env:ARG_TOOLSET `
- --platform $env:ARG_PLATFORM `
- --configuration $env:ARG_CONFIGURATION `
+ --toolset $toolset `
+ --platform $platform `
+ --configuration $configuration `
-- `
$boost_dir `
$libraries