diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-12-15 15:42:08 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-12-15 15:42:08 +0300 |
commit | d96b08c20a5a257f2d333289ad7be9394fbb5daf (patch) | |
tree | fbdbb508b060ce19b71261869a0f68d0e5fe9aca | |
parent | workflows/test: test macOS (diff) | |
download | build-boost-1.2.tar.gz build-boost-1.2.zip |
work around macOS/PowerShell stupidityv1.2
-rw-r--r-- | action.yml | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -87,6 +87,7 @@ runs: run: | New-Variable os -Value '${{ runner.os }}' -Option Constant New-Variable windows_host -Value ($os -eq 'Windows') -Option Constant + New-Variable macos_host -Value ($os -eq 'macOS') -Option Constant New-Variable base_dir -Value '${{ runner.workspace }}' -Option Constant New-Variable version -Value '${{ inputs.version }}' -Option Constant @@ -121,6 +122,13 @@ runs: $link = if ($static) {'static'} else {'shared'} $runtime_link = if ($static_runtime) {'static'} else {'shared'} + if ($macos_host) { + # This is pure insanity. For some reason, the Python's bin/ + # directory is in Path, but not in PATH (found out using echo)! + # Every person responsible for this mess is insane. + $env:PATH = $env:Path + } + boost-download --cache $base_dir -- $version $boost_dir boost-build ` --toolset $toolset ` |