From c300d8fcc7cbd386557e9dd2026db5011b52256d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Mar 2021 19:11:26 +0300 Subject: workflows: cache Boost downloads --- .github/workflows/basic.yml | 8 +++++++- .github/workflows/boost_clang_windows.yml | 6 ++++++ .github/workflows/boost_toolsets.yml | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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' -- cgit v1.2.3