diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-17 14:06:33 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-17 14:21:07 +0500 |
| commit | 00e9f83b07d700342e7143bf0cc6245d7323501c (patch) | |
| tree | 6dc67c5dda61e16889e9b94bb2670f1592c716c5 /.github/actions/build-example | |
| parent | consistent short-vs-long parameter ordering (diff) | |
| download | cmake-common-00e9f83b07d700342e7143bf0cc6245d7323501c.tar.gz cmake-common-00e9f83b07d700342e7143bf0cc6245d7323501c.zip | |
fix some zizmor warnings
Diffstat (limited to '.github/actions/build-example')
| -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) { |
