name: Run examples/boost description: Run examples/boost inputs: path: description: Installation directory required: true runs: using: composite steps: - run: | New-Variable path -Value '${{ inputs.path }}' -Option Constant if ($env:CI_HOST_LINUX -and -not $env:CI_TARGET_LINUX) { echo 'Not going to do that on Linux/MinGW' exit } $relative_test = 'test.txt' $absolute_test = Join-Path (Get-Location).Path 'test.txt' $exe_path = (Join-Path $path 'bin' 'foo') $exe_path += $env:CI_EXE_EXT $actual = & $exe_path $relative_test echo 'Actual output:' echo $actual $expected = $exe_path,$absolute_test echo 'Expected output:' echo $expected if (Compare-Object $actual $expected -CaseSensitive) { throw 'Unexpected output' } shell: pwsh