aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 11:07:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 11:15:12 +0300
commitc50da6df065985db1cd2d92f386c17a1731150ad (patch)
tree5c2fc0e3865dd2bf8af188b861c88d720579c3a8 /.github
parentproject.boost: Bintray was shut down (diff)
downloadcmake-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.yml15
-rw-r--r--.github/workflows/boost_download.yml1
2 files changed, 14 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
diff --git a/.github/workflows/boost_download.yml b/.github/workflows/boost_download.yml
index d5dc717..a718f60 100644
--- a/.github/workflows/boost_download.yml
+++ b/.github/workflows/boost_download.yml
@@ -35,6 +35,7 @@ jobs:
uses: ./.github/actions/download-boost
with:
boost-version: '${{ matrix.boost-version }}'
+ no-retry: 1
- name: Check that Boost was downloaded
uses: ./.github/actions/check-boost-download