aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/check-arch/action.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/actions/check-arch/action.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/actions/check-arch/action.yml b/.github/actions/check-arch/action.yml
index b8e4d64..3dce1d1 100644
--- a/.github/actions/check-arch/action.yml
+++ b/.github/actions/check-arch/action.yml
@@ -10,14 +10,17 @@ inputs:
runs:
using: composite
steps:
- - run: |
+ - env:
+ ARG_PATH: ${{ inputs.path }}
+ ARG_EXPECTED: ${{ inputs.expected }}
+ run: |
$script_path = if ($env:CI_TARGET_PE) {
Join-Path $env:GITHUB_WORKSPACE 'test' 'scripts' 'verify_arch.ps1'
} else {
Join-Path $env:GITHUB_WORKSPACE 'test' 'scripts' 'verify_arch.sh'
}
- $exe_path = (Join-Path '${{ inputs.path }}' 'bin' 'foo') + $env:CI_EXE_EXT
+ $exe_path = (Join-Path $env:ARG_PATH 'bin' 'foo') + $env:CI_EXE_EXT
- & $script_path $exe_path '${{ inputs.expected }}'
+ & $script_path $exe_path $env:ARG_EXPECTED
shell: pwsh