aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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