aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--action.yml8
1 files changed, 8 insertions, 0 deletions
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 `