From c50da6df065985db1cd2d92f386c17a1731150ad Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 3 May 2021 11:07:21 +0300 Subject: project.boost.download: add --no-retry parameter This is to facilitate testing mostly, but still required substantion refactoring. --- .github/actions/download-boost/action.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github/actions') diff --git a/.github/actions/download-boost/action.yml b/.github/actions/download-boost/action.yml index 95f5793..7e15075 100644 --- a/.github/actions/download-boost/action.yml +++ b/.github/actions/download-boost/action.yml @@ -2,8 +2,12 @@ name: Download Boost description: Download & unpack Boost inputs: boost-version: - description: 'Boost version' + description: Boost version required: true + no-retry: + description: Don't retry downloads + required: false + default: 0 runs: using: composite steps: @@ -31,10 +35,17 @@ runs: $python = 'python' $cache_dir = $env:BOOST_CACHE_DIR + $no_retry = '${{ inputs.no-retry }}' -eq '1' + + $args = @() + if ($no_retry) { + $args += '--no-retry' + } + if ($env:CI_HOST_CYGWIN) { $python = 'python3' $cache_dir = cygpath.exe -ua $cache_dir } - & $python -m project.boost.download --cache $cache_dir -- $env:BOOST_VERSION + & $python -m project.boost.download --cache $cache_dir $args -- $env:BOOST_VERSION shell: pwsh -- cgit v1.2.3