From 4fd8b38e50257d552a8bc149bffa657a84a8dd92 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Apr 2021 16:18:07 +0300 Subject: README: update --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 64108be..daf22bd 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,26 @@ You can pass it to CMake using the `BOOST_LIBRARYDIR` parameter: -D "BOOST_LIBRARYDIR=${{ steps.boost.outputs.librarydir }}" \ ... +Caching +------- + +Cache the Boost distribution archive by using the `actions/cache` action. +For example, for Boost version 1.72.0: + + - name: Cache Boost + uses: actions/cache@v2 + with: + path: '${{ runner.workspace }}/boost_*.tar.gz' + key: 'boost-1.72.0' + + - name: Build Boost + # This won't re-download the archive unnecessarily: + uses: egor-tensin/build-boost@v1 + with: + version: 1.72.0 + ... + + Notes ----- -- cgit v1.2.3