From d96b08c20a5a257f2d333289ad7be9394fbb5daf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Dec 2021 15:42:08 +0300 Subject: work around macOS/PowerShell stupidity --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 62af6e4..1448e6e 100644 --- a/action.yml +++ b/action.yml @@ -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 ` -- cgit v1.2.3