aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-29 18:15:39 +0100
committerEgor Tensin <egor@tensin.name>2025-12-29 18:15:39 +0100
commit98b998aae8005a4cc0b29da825493139f4d0079a (patch)
treeee2912754759c0aaafb5425f6b523296459cc384 /.github
parentdrop Cygwin, it's obsolete (diff)
downloadsetup-clang-98b998aae8005a4cc0b29da825493139f4d0079a.tar.gz
setup-clang-98b998aae8005a4cc0b29da825493139f4d0079a.zip
actions/check-cc: one less global variable
Diffstat (limited to '.github')
-rw-r--r--.github/actions/check-cc/action.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml
index aef6d9c..b30f735 100644
--- a/.github/actions/check-cc/action.yml
+++ b/.github/actions/check-cc/action.yml
@@ -8,8 +8,6 @@ runs:
using: composite
steps:
- run: |
- $version = '${{ inputs.version }}'
-
function Check-Exe {
param(
[Parameter(Mandatory=$true)]
@@ -22,7 +20,8 @@ runs:
$($output | Select-String -Pattern "clang version" -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
- if ($script:version) {
+ $version = '${{ inputs.version }}'
+ if ($version) {
$($output | Select-String -Pattern "$script:version." -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
}
}