aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-17 09:10:13 +0500
committerEgor Tensin <egor@tensin.name>2026-10-17 09:10:13 +0500
commit71b60e1e2c8329bd70161979467ecfd917f4f464 (patch)
tree1b2f8d0f07d2afeb7a6372d450cea75d69a23496 /.github/actions
parentREADME: update (diff)
downloadsetup-clang-71b60e1e2c8329bd70161979467ecfd917f4f464.tar.gz
setup-clang-71b60e1e2c8329bd70161979467ecfd917f4f464.zip
fix zizmor warnings
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/build-threads/action.yml12
-rw-r--r--.github/actions/check-cc/action.yml6
-rw-r--r--.github/actions/check-lld/action.yml6
3 files changed, 14 insertions, 10 deletions
diff --git a/.github/actions/build-threads/action.yml b/.github/actions/build-threads/action.yml
index 8c754b0..86515f7 100644
--- a/.github/actions/build-threads/action.yml
+++ b/.github/actions/build-threads/action.yml
@@ -11,12 +11,12 @@ inputs:
runs:
using: composite
steps:
- - run: |
- $version = '${{ inputs.version }}'
- $version = if ($version) { "-$version" } else { $version }
-
+ - env:
+ ARG_BINARY: ${{ inputs.binary }}
+ ARG_PLATFORM: ${{ inputs.platform }}
+ run: |
$flags = @()
- if ('${{ matrix.platform }}' -eq 'x86') {
+ if ($env:ARG_PLATFORM -eq 'x86') {
$flags += '-m32'
}
$flags += '-std=c++14','-o','test/threads.exe','test/threads.cpp'
@@ -24,5 +24,5 @@ runs:
$flags += '-lpthread'
}
- & '${{ inputs.binary }}' $flags
+ & $env:ARG_BINARY $flags
shell: pwsh
diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml
index 4dbeb0a..646babc 100644
--- a/.github/actions/check-cc/action.yml
+++ b/.github/actions/check-cc/action.yml
@@ -7,7 +7,9 @@ inputs:
runs:
using: composite
steps:
- - run: |
+ - env:
+ ARG_VERSION: ${{ inputs.version }}
+ run: |
function Check-Exe {
param(
[Parameter(Mandatory=$true)]
@@ -20,7 +22,7 @@ runs:
$($output | Select-String -Pattern "clang version" -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
- $version = '${{ inputs.version }}'
+ $version = $env:ARG_VERSION
if ($version) {
$($output | Select-String -Pattern "$version." -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
}
diff --git a/.github/actions/check-lld/action.yml b/.github/actions/check-lld/action.yml
index 5bb25b6..1eea794 100644
--- a/.github/actions/check-lld/action.yml
+++ b/.github/actions/check-lld/action.yml
@@ -7,7 +7,9 @@ inputs:
runs:
using: composite
steps:
- - run: |
+ - env:
+ ARG_VERSION: ${{ inputs.version }}
+ run: |
function Check-Exe {
param(
[Parameter(Mandatory=$true)]
@@ -23,7 +25,7 @@ runs:
$($output | Select-String -Pattern $HelpString -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
}
- $version = '${{ inputs.version }}'
+ $version = $env:ARG_VERSION
$driver_exe = 'lld'
# Although the output of `lld --version` claims that it's ld-link on