aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-13 19:11:26 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-13 20:32:45 +0300
commitc300d8fcc7cbd386557e9dd2026db5011b52256d (patch)
tree3f633ba53a9be2d8a9a6779accc1ab68ea686631 /.github/workflows
parentproject.ci: use pre-built Boost when available (diff)
downloadcmake-common-c300d8fcc7cbd386557e9dd2026db5011b52256d.tar.gz
cmake-common-c300d8fcc7cbd386557e9dd2026db5011b52256d.zip
workflows: cache Boost downloads
Diffstat (limited to '')
-rw-r--r--.github/workflows/basic.yml8
-rw-r--r--.github/workflows/boost_clang_windows.yml6
-rw-r--r--.github/workflows/boost_toolsets.yml6
3 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml
index 6cdf983..2b29792 100644
--- a/.github/workflows/basic.yml
+++ b/.github/workflows/basic.yml
@@ -36,9 +36,15 @@ jobs:
with:
python-version: '3.x'
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: boost_*.tar.gz
+ key: boost-1.72.0
+
- name: Build Boost
run: |
- python -m project.boost.download 1.72.0
+ python -m project.boost.download --cache . 1.72.0
python -m project.boost.build -- boost_1_72_0 --with-filesystem
- name: Build example project
diff --git a/.github/workflows/boost_clang_windows.yml b/.github/workflows/boost_clang_windows.yml
index d988269..dca79aa 100644
--- a/.github/workflows/boost_clang_windows.yml
+++ b/.github/workflows/boost_clang_windows.yml
@@ -34,6 +34,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ runner.workspace }}/boost/boost_*.tar.gz'
+ key: boost-${{ matrix.boost-version }}
+
- name: Clean up PATH
uses: egor-tensin/cleanup-path@v1
if: runner.os == 'Windows'
diff --git a/.github/workflows/boost_toolsets.yml b/.github/workflows/boost_toolsets.yml
index 1319264..165bc47 100644
--- a/.github/workflows/boost_toolsets.yml
+++ b/.github/workflows/boost_toolsets.yml
@@ -110,6 +110,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ runner.workspace }}/boost/boost_*.tar.gz'
+ key: 'boost-${{ matrix.boost-version }}'
+
- name: Clean up PATH
uses: egor-tensin/cleanup-path@v1
if: runner.os == 'Windows'