blob: b297f7272309b64bc09ce8ae95533bf1a5373d4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
|