diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-03 11:07:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-03 11:15:12 +0300 |
commit | c50da6df065985db1cd2d92f386c17a1731150ad (patch) | |
tree | 5c2fc0e3865dd2bf8af188b861c88d720579c3a8 /.github/actions/download-boost | |
parent | project.boost: Bintray was shut down (diff) | |
download | cmake-common-c50da6df065985db1cd2d92f386c17a1731150ad.tar.gz cmake-common-c50da6df065985db1cd2d92f386c17a1731150ad.zip |
project.boost.download: add --no-retry parameter
This is to facilitate testing mostly, but still required substantion
refactoring.
Diffstat (limited to '')
-rw-r--r-- | .github/actions/download-boost/action.yml | 15 |
1 files changed, 13 insertions, 2 deletions
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 |