aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/check-arch/action.yml
blob: b85be4ecf14756ffe8acbd9b9ffdb06bb5a737fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Verify architecture
description: Verify target architecture
inputs:
  path:
    description: Installation directory
    required: true
  expected:
    description: Target platform
    required: true
runs:
  using: composite
  steps:
    - run: |
        $script_path = if ($env:CI_TARGET_PE) {
            Join-Path $env:GITHUB_WORKSPACE '.ci' 'verify_arch.ps1'
        } else {
            Join-Path $env:GITHUB_WORKSPACE '.ci' 'verify_arch.sh'
        }

        $exe_path = (Join-Path '${{ inputs.path }}' 'bin' 'foo') + $env:CI_EXE_EXT

        & $script_path $exe_path '${{ inputs.expected }}'
      shell: pwsh