aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-13 23:07:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-13 23:07:58 +0300
commit8726fceec8ec1abcc0e4f6a7b5912a6f31843229 (patch)
tree1cd9c32ba435e37f343229ff0b38754e2b660d5f
parentworkflows: fix Boost caching (diff)
downloadcmake-common-8726fceec8ec1abcc0e4f6a7b5912a6f31843229.tar.gz
cmake-common-8726fceec8ec1abcc0e4f6a7b5912a6f31843229.zip
project.ci: cache Boost downloads
-rw-r--r--.github/workflows/ci_appveyor.yml6
-rw-r--r--.github/workflows/ci_github.yml6
-rw-r--r--.github/workflows/ci_travis.yml6
-rw-r--r--project/ci/boost.py2
4 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/ci_appveyor.yml b/.github/workflows/ci_appveyor.yml
index 9d76d1a..a88dc7d 100644
--- a/.github/workflows/ci_appveyor.yml
+++ b/.github/workflows/ci_appveyor.yml
@@ -45,6 +45,12 @@ jobs:
with:
python-version: '3.x'
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: C:\projects\boost_*.tar.gz
+ key: '${{ runner.os }}-boost-${{ env.boost_version }}'
+
- name: Create C:\projects
run: mkdir C:\projects
diff --git a/.github/workflows/ci_github.yml b/.github/workflows/ci_github.yml
index 4d6f58c..54a9a04 100644
--- a/.github/workflows/ci_github.yml
+++ b/.github/workflows/ci_github.yml
@@ -45,6 +45,12 @@ jobs:
with:
python-version: '3.x'
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ runner.workspace }}/boost_*.tar.gz'
+ key: '${{ runner.os }}-boost-${{ env.boost_version }}'
+
- name: Build Boost
run: python -m project.ci.boost -- --with-filesystem
diff --git a/.github/workflows/ci_travis.yml b/.github/workflows/ci_travis.yml
index bf948a7..c78143a 100644
--- a/.github/workflows/ci_travis.yml
+++ b/.github/workflows/ci_travis.yml
@@ -42,6 +42,12 @@ jobs:
with:
python-version: '3.x'
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ env.HOME }}/boost_*.tar.gz'
+ key: '${{ runner.os }}-boost-${{ env.boost_version }}'
+
- name: Build Boost
run: python -m project.ci.travis.boost -- --with-filesystem
diff --git a/project/ci/boost.py b/project/ci/boost.py
index 861dc1a..588df92 100644
--- a/project/ci/boost.py
+++ b/project/ci/boost.py
@@ -45,7 +45,7 @@ def build_ci(dirs, argv=None):
version = dirs.get_boost_version()
build_dir = dirs.get_build_dir()
boost_dir = dirs.get_boost_dir()
- params = DownloadParameters(version, unpack_dir=build_dir, dest_path=boost_dir)
+ params = DownloadParameters(version, cache_dir=build_dir, dest_path=boost_dir)
download(params)
params = BuildParameters(boost_dir,