diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-13 19:11:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-13 20:32:45 +0300 |
commit | c300d8fcc7cbd386557e9dd2026db5011b52256d (patch) | |
tree | 3f633ba53a9be2d8a9a6779accc1ab68ea686631 /.github/actions/download-boost/action.yml | |
parent | project.ci: use pre-built Boost when available (diff) | |
download | cmake-common-c300d8fcc7cbd386557e9dd2026db5011b52256d.tar.gz cmake-common-c300d8fcc7cbd386557e9dd2026db5011b52256d.zip |
workflows: cache Boost downloads
Diffstat (limited to '.github/actions/download-boost/action.yml')
-rw-r--r-- | .github/actions/download-boost/action.yml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/.github/actions/download-boost/action.yml b/.github/actions/download-boost/action.yml index fc0be88..95f5793 100644 --- a/.github/actions/download-boost/action.yml +++ b/.github/actions/download-boost/action.yml @@ -11,30 +11,30 @@ runs: shell: pwsh - run: | $parent_dir = Split-Path $env:GITHUB_WORKSPACE - $unpack_dir = Join-Path $parent_dir 'boost' - echo "BOOST_UNPACK_DIR=$unpack_dir" >> $env:GITHUB_ENV + $cache_dir = Join-Path $parent_dir 'boost' + echo "BOOST_CACHE_DIR=$cache_dir" >> $env:GITHUB_ENV shell: pwsh - run: | $dir_name = "boost_$($env:BOOST_VERSION.Replace('.', '_'))" - $dir = Join-Path $env:BOOST_UNPACK_DIR $dir_name + $dir = Join-Path $env:BOOST_CACHE_DIR $dir_name echo "BOOST_DIR=$dir" >> $env:GITHUB_ENV shell: pwsh - run: | echo '' echo '----------------------------------------------------------------' - echo "BOOST_VERSION: $env:BOOST_VERSION" - echo "BOOST_UNPACK_DIR: $env:BOOST_UNPACK_DIR" - echo "BOOST_DIR: $env:BOOST_DIR" + echo "BOOST_VERSION: $env:BOOST_VERSION" + echo "BOOST_CACHE_DIR: $env:BOOST_CACHE_DIR" + echo "BOOST_DIR: $env:BOOST_DIR" echo '----------------------------------------------------------------' - New-Item $env:BOOST_UNPACK_DIR -Type Directory | Out-Null + New-Item $env:BOOST_CACHE_DIR -Force -Type Directory | Out-Null $python = 'python' - $unpack_dir = $env:BOOST_UNPACK_DIR + $cache_dir = $env:BOOST_CACHE_DIR if ($env:CI_HOST_CYGWIN) { $python = 'python3' - $unpack_dir = cygpath.exe -ua $unpack_dir + $cache_dir = cygpath.exe -ua $cache_dir } - & $python -m project.boost.download --unpack $unpack_dir -- $env:BOOST_VERSION + & $python -m project.boost.download --cache $cache_dir -- $env:BOOST_VERSION shell: pwsh |