setup-clang/.github/actions/check-cc/action.yml
2021-07-02 20:22:14 +03:00

22 lines
542 B
YAML

name: Check cc/c++
description: Check cc/c++
runs:
using: composite
steps:
- run: |
function Check-Exe {
param(
[Parameter(Mandatory=$true)]
[string] $Exe
)
echo (Get-Command $Exe).Path
$output = & $Exe --version
echo $output
$($output | Select-String -Pattern "clang version" -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
}
Check-Exe cc
Check-Exe c++
shell: pwsh