aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-12-15 15:42:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-12-15 15:42:08 +0300
commitd96b08c20a5a257f2d333289ad7be9394fbb5daf (patch)
treefbdbb508b060ce19b71261869a0f68d0e5fe9aca
parentworkflows/test: test macOS (diff)
downloadbuild-boost-1.2.tar.gz
build-boost-1.2.zip
work around macOS/PowerShell stupidityv1.2
-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 `