diff options
Diffstat (limited to '')
| -rw-r--r-- | .github/actions/build-example/action.yml | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/.github/actions/build-example/action.yml b/.github/actions/build-example/action.yml index 9909398..cd49c28 100644 --- a/.github/actions/build-example/action.yml +++ b/.github/actions/build-example/action.yml @@ -22,32 +22,41 @@ inputs: outputs: install-dir: description: Installation directory - value: '${{ steps.install-dir.outputs.path }}' + value: ${{ steps.install-dir.outputs.path }} runs: using: composite steps: - id: install-dir + env: + ARG_SRC_DIR: ${{ inputs.src-dir }} run: | - $src_dir = Resolve-Path '${{ inputs.src-dir }}' + $src_dir = Resolve-Path $env:ARG_SRC_DIR $project_name = Split-Path $src_dir -Leaf $install_dir = Join-Path (Split-Path $env:GITHUB_WORKSPACE) "install_$project_name" echo "path=$install_dir" >> $env:GITHUB_OUTPUT shell: pwsh - - run: | + - env: + ARG_SRC_DIR: ${{ inputs.src-dir }} + ARG_BOOST_DIR: ${{ inputs.boost-dir }} + ARG_TOOLSET: ${{ inputs.toolset }} + ARG_PLATFORM: ${{ inputs.platform }} + ARG_CONFIGURATION: ${{ inputs.configuration }} + INSTALL_DIR: ${{ steps.install-dir.outputs.path }} + run: | $python = 'python' - $src_dir = '${{ inputs.src-dir }}' - $install_dir = '${{ steps.install-dir.outputs.path }}' - $boost_dir = '${{ inputs.boost-dir }}' + $src_dir = $env:ARG_SRC_DIR + $install_dir = $env:INSTALL_DIR + $boost_dir = $env:ARG_BOOST_DIR $args = @( '--install', $install_dir, '--platform', - '${{ inputs.platform }}', + $env:ARG_PLATFORM, '--configuration', - '${{ inputs.configuration }}', + $env:ARG_CONFIGURATION, '--toolset', - '${{ inputs.toolset }}' + $env:ARG_TOOLSET ) if ($boost_dir) { |
