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