diff options
Diffstat (limited to '')
| -rw-r--r-- | action.yml | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -34,16 +34,16 @@ runs: $linux_host = '${{ runner.os }}' -eq 'Linux' $windows_host = '${{ runner.os }}' -eq 'Windows' - $version = $env:ARG_VERSION + $version = (Get-ChildItem env:ARG_VERSION).Value $latest = $version -eq 'latest' - $x64 = $env:ARG_PLATFORM -eq 'x64' + $x64 = (Get-ChildItem env:ARG_PLATFORM).Value -eq 'x64' function Locate-Choco { $path = Get-Command 'choco' -ErrorAction SilentlyContinue if ($path) { $path.Path } else { - Join-Path ${env:ProgramData} 'chocolatey' 'bin' 'choco' + Join-Path (Get-ChildItem env:ProgramData).Value 'chocolatey' 'bin' 'choco' } } @@ -177,10 +177,10 @@ runs: $linux_host = '${{ runner.os }}' -eq 'Linux' $windows_host = '${{ runner.os }}' -eq 'Windows' - $cc = $env:ARG_CC -eq '1' + $cc = (Get-ChildItem env:ARG_CC).Value -eq '1' - $clang = $env:CLANG - $clangxx = $env:CLANGXX + $clang = (Get-ChildItem env:CLANG).Value + $clangxx = (Get-ChildItem env:CLANGXX).Value function Link-Exe { param( |
